@@ -44,41 +44,60 @@ specificTransfos="^progs/:=:
44
44
descTree = ${ TMPDIR:-/tmp } /descTree_$$
45
45
trap "\rm -f $descTree" EXIT
46
46
47
- # Transformation to apply systematically (IAL, Méso-NH and testprogs)
47
+ # We cannot suppress non column calls for Méso-NH, stack transformation is replaced by allocatables
48
+ # source this file, then: "export PYFT_OPTS_MNH; check_commit_mesonh.sh --prep_code-opts '--pyft_opts_env PYFT_OPTS_MNH' ...."
48
49
# The --wrapH is automatically set by prep_code
49
50
# The --mnhExpand is controlled by the different check_commit_* scripts
50
51
# --addIncludes must be before --descTree because --addIncludes removes a wrong "file" node
51
- common_opts = "--tree . --addIncludes --descTree $descTree --simplify --enableCache" #General options
52
- common_opts = "$common_opts --inlineContainedSubroutinesPHYEX" #Inlining
53
- common_opts = "$common_opts --deleteDrHook --deleteBudgetDDH" #Not available on GPU
54
- common_opts = "$common_opts --addACC_routine_seq" #add 'acc routine' directive
55
- common_opts = " $common_opts --stopScopes sub:SHALLOW_MF#sub:ICE_ADJUST#sub:RAIN_ICE#sub:RAIN_ICE_OLD#sub:TURB#sub:LIMA_ADJUST_SPLIT#sub:LIMA"
56
- common_opts = "$common_opts --setFalseIfStmt TURBN%LTURB_DIAG --setFalseIfStmt TURBN%LTURB_FLX" #remove diagnostic output
57
- common_opts = " $common_opts --buildACCTypeHelpers"
58
-
59
- # We cannot suppress non column calls for Méso-NH, stack transformation is replaced by allocatables
60
- # source this file, then: "export PYFT_OPTS_MNH; check_commit_mesonh.sh --prep_code-opts '--pyft_opts_env PYFT_OPTS_MNH' ...."
61
- common_opts_MNH = " $common_opts --addArrayParentheses --expandAllArraysPHYEX --attachArraySpecToEntity --applyCPPifdef %REPRO48 --replaceAutomaticWithAllocatable"
62
- PYFT_OPTS_MNH = "$common_opts_MNH
52
+ PYFT_OPTS_MNH = "--tree . --addIncludes --descTree $descTree --simplify --enableCache" #General options
53
+ PYFT_OPTS_MNH = "$PYFT_OPTS_MNH --inlineContainedSubroutinesPHYEX" #Inlining
54
+ 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
56
+ 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
+ PYFT_OPTS_MNH = "$PYFT_OPTS_MNH --setFalseIfStmt TURBN%LTURB_DIAG --setFalseIfStmt TURBN%LTURB_FLX" #remove diagnostic output
58
+ PYFT_OPTS_MNH = " $PYFT_OPTS_MNH --buildACCTypeHelpers"
59
+ PYFT_OPTS_MNH = " $PYFT_OPTS_MNH --addArrayParentheses --expandAllArraysPHYEX --attachArraySpecToEntity --applyCPPifdef %REPRO48 --replaceAutomaticWithAllocatable"
60
+ PYFT_OPTS_MNH = "$PYFT_OPTS_MNH
63
61
$specificTransfos
64
- ^turb/mode_bl_depth_diag.F90:=:--removeCall module:MODE_BL_DEPTH_DIAG/sub:BL_DEPTH_DIAG_1D BL_DEPTH_DIAG_3D $common_opts_MNH
65
- ^micro/rain_ice.F90:=:--removeCall sub:RAIN_ICE ELEC_TENDENCIES $common_opts_MNH "
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 "
66
64
67
65
# For IAL, stack transformation is replaced by allocatables
68
66
# source this file, then: "export PYFT_OPTS_IAL; check_commit_ial.sh --prep_code-opts '--pyft_opts_env PYFT_OPTS_IAL' ...."
69
- common_opts_IAL = " $common_opts --addArrayParentheses --expandAllArraysPHYEX --attachArraySpecToEntity --applyCPPifdef REPRO48 --deleteNonColumnCallsPHYEX --replaceAutomaticWithAllocatable"
70
- PYFT_OPTS_IAL = "$common_opts_IAL
67
+ # The --wrapH is automatically set by prep_code
68
+ # The --mnhExpand is controlled by the different check_commit_* scripts
69
+ # --addIncludes must be before --descTree because --addIncludes removes a wrong "file" node
70
+ PYFT_OPTS_IAL = "--tree . --addIncludes --descTree $descTree --simplify --enableCache" #General options
71
+ PYFT_OPTS_IAL = "$PYFT_OPTS_IAL --inlineContainedSubroutinesPHYEX" #Inlining
72
+ 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
74
+ 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
+ PYFT_OPTS_IAL = "$PYFT_OPTS_IAL --setFalseIfStmt TURBN%LTURB_DIAG --setFalseIfStmt TURBN%LTURB_FLX" #remove diagnostic output
76
+ PYFT_OPTS_IAL = " $PYFT_OPTS_IAL --buildACCTypeHelpers"
77
+ PYFT_OPTS_IAL = " $PYFT_OPTS_IAL --addArrayParentheses --expandAllArraysPHYEX --attachArraySpecToEntity --applyCPPifdef REPRO48 --deleteNonColumnCallsPHYEX --replaceAutomaticWithAllocatable"
78
+ PYFT_OPTS_IAL = "$PYFT_OPTS_IAL
71
79
$specificTransfos
72
- ^turb/mode_bl_depth_diag.F90:=:--removeCall module:MODE_BL_DEPTH_DIAG/sub:BL_DEPTH_DIAG_1D BL_DEPTH_DIAG_3D $common_opts_IAL
73
- ^micro/rain_ice.F90:=:--removeCall sub:RAIN_ICE ELEC_TENDENCIES $common_opts_IAL "
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 "
74
82
75
83
# For testprogs
76
84
# check_commit_testprogs.sh -a <this conf>
77
85
# For --removeIJDim, the USE_COLCALL compilation key must be set in the *.fcm file
78
86
# --removeIJDim internally applies --addArrayParentheses --expandAllArraysPHYEX and, if --simplify is set, attachArraySpecToEntity
79
- common_opts = " $common_opts --applyCPPifdef REPRO48 --deleteNonColumnCallsPHYEX --removeIJDim --addStack $stackMode "
80
- PYFT_OPTS = "$common_opts
87
+ # The --wrapH is automatically set by prep_code
88
+ # 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
91
+ PYFT_OPTS = "$PYFT_OPTS --inlineContainedSubroutinesPHYEX" #Inlining
92
+ PYFT_OPTS = "$PYFT_OPTS --deleteDrHook --deleteBudgetDDH" #Not available on GPU
93
+ # PYFT_OPTS="$PYFT_OPTS --addACC_routine_seq" #add 'acc routine' directive
94
+ 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
+ PYFT_OPTS = "$PYFT_OPTS --setFalseIfStmt TURBN%LTURB_DIAG --setFalseIfStmt TURBN%LTURB_FLX" #remove diagnostic output
96
+ PYFT_OPTS = " $PYFT_OPTS --buildACCTypeHelpers"
97
+ 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
99
+ PYFT_OPTS = "$PYFT_OPTS
81
100
$specificTransfos
82
- ^turb/mode_bl_depth_diag.F90:=:--removeCall module:MODE_BL_DEPTH_DIAG/sub:BL_DEPTH_DIAG_1D BL_DEPTH_DIAG_3D $common_opts
83
- ^micro/rain_ice.F90:=:--removeCall sub:RAIN_ICE ELEC_TENDENCIES $common_opts "
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 "
84
103
0 commit comments