File indexing completed on 2026-03-19 05:08:58 UTC
view on githubraw file Latest commit 69361556 on 2026-03-18 21:20:20 UTC
6c747cb1b2 Patr*0001 #include "THSICE_OPTIONS.h"
0002
e4eb5b7d6f Jean*0003
0004
0005
69361556c2 Mart*0006 SUBROUTINE THSICE_COST_FINAL( ifc, optimcycle, myThid )
6c747cb1b2 Patr*0007
e4eb5b7d6f Jean*0008
0009
0010
0011
6c747cb1b2 Patr*0012
e4eb5b7d6f Jean*0013
0014 IMPLICIT NONE
6c747cb1b2 Patr*0015
e4eb5b7d6f Jean*0016
6c747cb1b2 Patr*0017 #include "EEPARAMS.h"
0018 #include "SIZE.h"
0019 #include "PARAMS.h"
0020 #include "DYNVARS.h"
0021 #include "THSICE_PARAMS.h"
0022 #ifdef ALLOW_COST
65754df434 Mart*0023 # include "THSICE_COST.h"
0024 # include "cost.h"
6c747cb1b2 Patr*0025 #endif
0026
e4eb5b7d6f Jean*0027
69361556c2 Mart*0028
0029
0030
0031 INTEGER ifc
0032 INTEGER optimcycle
e4eb5b7d6f Jean*0033 INTEGER myThid
6c747cb1b2 Patr*0034
0035 #ifdef ALLOW_COST
e4eb5b7d6f Jean*0036
0037 INTEGER bi,bj
6c747cb1b2 Patr*0038 _RL f_thsice
0039 _RL no_thsice
69361556c2 Mart*0040
e4eb5b7d6f Jean*0041
6c747cb1b2 Patr*0042
e4eb5b7d6f Jean*0043
6c747cb1b2 Patr*0044
0045 f_thsice = 0. _d 0
0046 no_thsice = 0. _d 0
0047
e4eb5b7d6f Jean*0048
0049 DO bj = myByLo(myThid), myByHi(myThid)
0050 DO bi = myBxLo(myThid), myBxHi(myThid)
6c747cb1b2 Patr*0051
e4eb5b7d6f Jean*0052 tile_fc(bi,bj) = tile_fc(bi,bj)
6c747cb1b2 Patr*0053 & + mult_thsice * objf_thsice(bi,bj)
0054
0055 f_thsice = f_thsice + objf_thsice(bi,bj)
0056
e4eb5b7d6f Jean*0057 ENDDO
0058 ENDDO
6c747cb1b2 Patr*0059
e4eb5b7d6f Jean*0060
0061
0062
6c747cb1b2 Patr*0063
69361556c2 Mart*0064 WRITE(standardMessageUnit,'(A,1PE22.14)')
6c747cb1b2 Patr*0065 & ' --> f_thsice = ', f_thsice
0066
69361556c2 Mart*0067
0068
0069
0070
0071
0072
0073
0074
6c747cb1b2 Patr*0075 #endif /* ALLOW_COST */
0076
e4eb5b7d6f Jean*0077 RETURN
0078 END