@@ -22,25 +22,28 @@ stackMode=AROME
22
22
# * do not modify turb_hor* or mode_rotate_wind.F90 (non column subroutines)
23
23
# * remove call to condensation from lima, do not touch lima routines (due to implicit dimensions at declaration)
24
24
# * remove problematic call to BL_DEPTH_DIAG_3D from the unused (in testprogs and AROME) BL_DEPTH_DIAG_1D
25
+ # * do not touch .f files which will be included
25
26
# this part is written differently for each model. For MesoNH, LES diag needs this call
26
- specificTransfos = "^progs/:=:
27
- ^rain_ice/:=:
28
- ^rain_ice_old/:=:
29
- ^ice_adjust/:=:
30
- ^turb_mnh/:=:
31
- ^shallow/:=:
32
- ^support/:=:
33
- ^ext/:=:
34
- ^micro/minpack.F90:=:
35
- ^aux/tools.F90:=:
36
- ^turb/mode_turb_hor:=:--empty --simplify
37
- ^turb/mode_rotate_wind.F90:=:--empty --simplify
38
- ^turb/mode_tridiag_w.F90:=:--empty --simplify
39
- ^micro/mode_lima:=:
40
- ^micro/lima:=:
41
- ^micro/lima_adjust_split.F90:=:--removeCall sub:LIMA_ADJUST_SPLIT CONDENSATION"
27
+ specificTransfos = "^(./)?progs/:=:
28
+ ^(./)?rain_ice/:=:
29
+ ^(./)?rain_ice_old/:=:
30
+ ^(./)?ice_adjust/:=:
31
+ ^(./)?turb_mnh/:=:
32
+ ^(./)?shallow/:=:
33
+ ^(./)?support/:=:
34
+ ^(./)?ext/:=:
35
+ ^(./)?micro/minpack\.F90:=:
36
+ ^(./)?aux/tools\.F90:=:
37
+ ^(./)?turb/mode_turb_hor:=:--empty --simplify
38
+ ^(./)?turb/mode_rotate_wind\.F90:=:--empty --simplify
39
+ ^(./)?turb/mode_tridiag_w\.F90:=:--empty --simplify
40
+ ^(./)?micro/mode_lima:=:
41
+ ^(./)?micro/lima:=:
42
+ ^(./)?micro/lima_adjust_split\.F90:=:--removeCall sub:LIMA_ADJUST_SPLIT CONDENSATION
43
+ ^(./)?micro/[_.a-z0-9]*\.h:=:
44
+ ^(./)?turb/[_.a-z0-9]*\.h:=:"
42
45
43
- # Temporary file for the description tree
46
+ # Temporary file for the description tree, only for MesoNH and IAL
44
47
descTree = ${ TMPDIR:-/tmp } /descTree_$$
45
48
trap "\rm -f $descTree" EXIT
46
49
@@ -52,15 +55,15 @@ trap "\rm -f $descTree" EXIT
52
55
PYFT_OPTS_MNH = "--tree . --addIncludes --descTree $descTree --simplify --enableCache" #General options
53
56
PYFT_OPTS_MNH = "$PYFT_OPTS_MNH --inlineContainedSubroutinesPHYEX" #Inlining
54
57
PYFT_OPTS_MNH = "$PYFT_OPTS_MNH --deleteDrHook --deleteBudgetDDH" #Not available on GPU
55
- PYFT_OPTS_MNH = "$PYFT_OPTS_MNH --addACC_routine_seq " #add 'acc routine' directive
58
+ PYFT_OPTS_MNH = "$PYFT_OPTS_MNH --addACCRoutineSeq " #add 'acc routine' directive
56
59
PYFT_OPTS_MNH = " $PYFT_OPTS_MNH --stopScopes sub:SHALLOW_MF#sub:ICE_ADJUST#sub:RAIN_ICE#sub:RAIN_ICE_OLD#sub:TURB#sub:LIMA_ADJUST_SPLIT#sub:LIMA"
57
60
PYFT_OPTS_MNH = "$PYFT_OPTS_MNH --setFalseIfStmt TURBN%LTURB_DIAG --setFalseIfStmt TURBN%LTURB_FLX" #remove diagnostic output
58
61
PYFT_OPTS_MNH = " $PYFT_OPTS_MNH --buildACCTypeHelpers"
59
62
PYFT_OPTS_MNH = " $PYFT_OPTS_MNH --addArrayParentheses --expandAllArraysPHYEX --attachArraySpecToEntity --applyCPPifdef %REPRO48 --replaceAutomaticWithAllocatable"
60
63
PYFT_OPTS_MNH = "$PYFT_OPTS_MNH
61
64
$specificTransfos
62
- ^turb/mode_bl_depth_diag.F90:=:--removeCall module:MODE_BL_DEPTH_DIAG/sub:BL_DEPTH_DIAG_1D BL_DEPTH_DIAG_3D $PYFT_OPTS_MNH
63
- ^micro/rain_ice.F90:=:--removeCall sub:RAIN_ICE ELEC_TENDENCIES $PYFT_OPTS_MNH"
65
+ ^(./)? turb/mode_bl_depth_diag.F90:=:--removeCall module:MODE_BL_DEPTH_DIAG/sub:BL_DEPTH_DIAG_1D BL_DEPTH_DIAG_3D $PYFT_OPTS_MNH
66
+ ^(./)? micro/rain_ice.F90:=:--removeCall sub:RAIN_ICE ELEC_TENDENCIES $PYFT_OPTS_MNH"
64
67
65
68
# For IAL, stack transformation is replaced by allocatables
66
69
# source this file, then: "export PYFT_OPTS_IAL; check_commit_ial.sh --prep_code-opts '--pyft_opts_env PYFT_OPTS_IAL' ...."
@@ -70,34 +73,33 @@ $specificTransfos
70
73
PYFT_OPTS_IAL = "--tree . --addIncludes --descTree $descTree --simplify --enableCache" #General options
71
74
PYFT_OPTS_IAL = "$PYFT_OPTS_IAL --inlineContainedSubroutinesPHYEX" #Inlining
72
75
PYFT_OPTS_IAL = "$PYFT_OPTS_IAL --deleteDrHook --deleteBudgetDDH" #Not available on GPU
73
- PYFT_OPTS_IAL = "$PYFT_OPTS_IAL --addACC_routine_seq " #add 'acc routine' directive
76
+ PYFT_OPTS_IAL = "$PYFT_OPTS_IAL --addACCRoutineSeq " #add 'acc routine' directive
74
77
PYFT_OPTS_IAL = " $PYFT_OPTS_IAL --stopScopes sub:SHALLOW_MF#sub:ICE_ADJUST#sub:RAIN_ICE#sub:RAIN_ICE_OLD#sub:TURB#sub:LIMA_ADJUST_SPLIT#sub:LIMA"
75
78
PYFT_OPTS_IAL = "$PYFT_OPTS_IAL --setFalseIfStmt TURBN%LTURB_DIAG --setFalseIfStmt TURBN%LTURB_FLX" #remove diagnostic output
76
79
PYFT_OPTS_IAL = " $PYFT_OPTS_IAL --buildACCTypeHelpers"
77
80
PYFT_OPTS_IAL = " $PYFT_OPTS_IAL --addArrayParentheses --expandAllArraysPHYEX --attachArraySpecToEntity --applyCPPifdef REPRO48 --deleteNonColumnCallsPHYEX --replaceAutomaticWithAllocatable"
78
81
PYFT_OPTS_IAL = "$PYFT_OPTS_IAL
79
82
$specificTransfos
80
- ^turb/mode_bl_depth_diag.F90:=:--removeCall module:MODE_BL_DEPTH_DIAG/sub:BL_DEPTH_DIAG_1D BL_DEPTH_DIAG_3D $PYFT_OPTS_IAL
81
- ^micro/rain_ice.F90:=:--removeCall sub:RAIN_ICE ELEC_TENDENCIES $PYFT_OPTS_IAL"
83
+ ^(./)? turb/mode_bl_depth_diag.F90:=:--removeCall module:MODE_BL_DEPTH_DIAG/sub:BL_DEPTH_DIAG_1D BL_DEPTH_DIAG_3D $PYFT_OPTS_IAL
84
+ ^(./)? micro/rain_ice.F90:=:--removeCall sub:RAIN_ICE ELEC_TENDENCIES $PYFT_OPTS_IAL"
82
85
83
86
# For testprogs
84
87
# check_commit_testprogs.sh -a <this conf>
85
88
# For --removeIJDim, the USE_COLCALL compilation key must be set in the *.fcm file
86
89
# --removeIJDim internally applies --addArrayParentheses --expandAllArraysPHYEX and, if --simplify is set, attachArraySpecToEntity
87
90
# The --wrapH is automatically set by prep_code
88
91
# The --mnhExpand is controlled by the different check_commit_* scripts
89
- # --addIncludes must be before --descTree because --addIncludes removes a wrong "file" node
90
- PYFT_OPTS = "--tree . -- addIncludes --descTree $descTree --simplify --enableCache" #General options
92
+ # make_fcm automatically adds the --tree and --descTree options
93
+ PYFT_OPTS = "--addIncludes --simplify --enableCache" #General options
91
94
PYFT_OPTS = "$PYFT_OPTS --inlineContainedSubroutinesPHYEX" #Inlining
92
95
PYFT_OPTS = "$PYFT_OPTS --deleteDrHook --deleteBudgetDDH" #Not available on GPU
93
- # PYFT_OPTS="$PYFT_OPTS --addACC_routine_seq" #add 'acc routine' directive
94
96
PYFT_OPTS = " $PYFT_OPTS --stopScopes sub:SHALLOW_MF#sub:ICE_ADJUST#sub:RAIN_ICE#sub:RAIN_ICE_OLD#sub:TURB#sub:LIMA_ADJUST_SPLIT#sub:LIMA"
95
97
PYFT_OPTS = "$PYFT_OPTS --setFalseIfStmt TURBN%LTURB_DIAG --setFalseIfStmt TURBN%LTURB_FLX" #remove diagnostic output
96
98
PYFT_OPTS = " $PYFT_OPTS --buildACCTypeHelpers"
97
99
PYFT_OPTS = " $PYFT_OPTS --applyCPPifdef REPRO48 --deleteNonColumnCallsPHYEX --removeIJDim --addStack $stackMode "
98
- PYFT_OPTS = "$PYFT_OPTS --removeACC --addACC_routine_seq " #remove pre-existing ACC directives, then add 'acc routine seq' directive
100
+ PYFT_OPTS = "$PYFT_OPTS --removeACC --addACCRoutineSeq " #remove pre-existing ACC directives, then add 'acc routine seq' directive
99
101
PYFT_OPTS = "$PYFT_OPTS
100
102
$specificTransfos
101
- ^turb/mode_bl_depth_diag.F90:=:--removeCall module:MODE_BL_DEPTH_DIAG/sub:BL_DEPTH_DIAG_1D BL_DEPTH_DIAG_3D $PYFT_OPTS
102
- ^micro/rain_ice.F90:=:--removeCall sub:RAIN_ICE ELEC_TENDENCIES $PYFT_OPTS"
103
+ ^(./)? turb/mode_bl_depth_diag\ .F90:=:--removeCall module:MODE_BL_DEPTH_DIAG/sub:BL_DEPTH_DIAG_1D BL_DEPTH_DIAG_3D $PYFT_OPTS
104
+ ^(./)? micro/rain_ice\ .F90:=:--removeCall sub:RAIN_ICE ELEC_TENDENCIES $PYFT_OPTS"
103
105
0 commit comments