/[MITgcm]/MITgcm/tools/OAD_support/cb2mGetModules.csh
ViewVC logotype

Annotation of /MITgcm/tools/OAD_support/cb2mGetModules.csh

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.8 - (hide annotations) (download) (as text)
Fri Apr 4 19:17:33 2014 UTC (10 years, 2 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64w, checkpoint64v, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint65
Changes since 1.7: +14 -2 lines
File MIME type: application/x-csh
include explicitly AUTODIFF_OPTIONS.h, COST_OPTIONS.h, CTRL_OPTIONS.h
 and ECCO_OPTIONS.h (in case we don't use ECCO_CPPOPTIONS.h)

1 heimbach 1.1 #!/bin/csh -f
2     set fileName=${1:r}
3     set awkScript=${2}
4     echo ' MODULE '${fileName}_mod > ${fileName}_temp
5 jmc 1.8 echo '#include "PACKAGES_CONFIG.h"' >> ${fileName}_temp
6     echo '#include "CPP_OPTIONS.h"' >> ${fileName}_temp
7     echo '#ifdef ALLOW_AUTODIFF' >> ${fileName}_temp
8     echo '# include "AUTODIFF_OPTIONS.h"' >> ${fileName}_temp
9     echo '#endif' >> ${fileName}_temp
10     echo '#ifdef ALLOW_COST' >> ${fileName}_temp
11     echo '# include "COST_OPTIONS.h"' >> ${fileName}_temp
12     echo '#endif' >> ${fileName}_temp
13     echo '#ifdef ALLOW_CTRL' >> ${fileName}_temp
14     echo '# include "CTRL_OPTIONS.h"' >> ${fileName}_temp
15     echo '#endif' >> ${fileName}_temp
16     echo '#ifdef ALLOW_ECCO' >> ${fileName}_temp
17     echo '# include "ECCO_OPTIONS.h"' >> ${fileName}_temp
18     echo '#endif' >> ${fileName}_temp
19 jahn 1.3 if ( ${fileName} == 'DIC_LOAD' ) then
20     echo '#include "DIC_OPTIONS.h"' >> ${fileName}_temp
21     endif
22 heimbach 1.4 if ( ${fileName} == 'GAD' ) then
23     echo '#include "GAD_OPTIONS.h"' >> ${fileName}_temp
24     endif
25     if ( ${fileName} == 'GMREDI' ) then
26     echo '#include "GMREDI_OPTIONS.h"' >> ${fileName}_temp
27     endif
28     if ( ${fileName} == 'MOM_VISC' ) then
29     echo '#include "MOM_COMMON_OPTIONS.h"' >> ${fileName}_temp
30     endif
31     if ( ${fileName} == 'SHAP_FILT' ) then
32     echo '#include "SHAP_FILT_OPTIONS.h"' >> ${fileName}_temp
33     endif
34 heimbach 1.5 if ( ${fileName} == 'STREAMICE' ) then
35     echo '#include "STREAMICE_OPTIONS.h"' >> ${fileName}_temp
36     endif
37 heimbach 1.1 if ( ${fileName} != 'SIZE' && ${fileName} != 'MNC_COMMON' && ${fileName} != 'EEPARAMS' ) then
38     echo ' use SIZE_mod' >> ${fileName}_temp
39     endif
40     if ( ${fileName} != 'EEPARAMS' && ${fileName} != 'SIZE' && ${fileName} != 'MNC_COMMON' ) then
41     echo ' use EEPARAMS_mod' >> ${fileName}_temp
42     endif
43     if ( ${fileName} != 'PARAMS' && ${fileName} != 'EEPARAMS' && ${fileName} != 'SIZE' && ${fileName} != 'MNC_COMMON' && ${fileName} != 'GAD' && ${fileName} != 'GRID' ) then
44     echo ' use PARAMS_mod' >> ${fileName}_temp
45     endif
46 jahn 1.2 if ( ${fileName} == 'ctrl' || ${fileName} == 'ctrl_dummy' || ${fileName} == 'CTRL_GENARR' ) then
47 heimbach 1.1 echo ' use CTRL_SIZE_mod' >> ${fileName}_temp
48     endif
49 utke 1.7 if ( ${fileName} == 'DIAGSTATS_REGIONS' || ${fileName} == 'DIAGNOSTICS' ) then
50     echo ' use DIAGNOSTICS_SIZE_mod' >> ${fileName}_temp
51     endif
52 jahn 1.3 if ( ${fileName} == 'PTRACERS_FIELDS' || ${fileName} == 'PTRACERS_PARAMS' || \
53     ${fileName} == 'PTRACERS_START' || ${fileName} == 'PTRACERS_TAVE' || \
54     ${fileName} == 'GCHEM_FIELDS' ) then
55     echo ' use PTRACERS_SIZE_mod' >> ${fileName}_temp
56 jahn 1.2 endif
57 heimbach 1.1 #echo awk -f ${awkScript} ${fileName}.h
58     awk -f ${awkScript} ${fileName}.h | grep -v mpif.h >> ${fileName}_temp
59     echo ' END MODULE' ${fileName}_mod >> ${fileName}_temp
60     cp ${fileName}_temp ${fileName}_mod.FF90
61     \rm ${fileName}_temp

  ViewVC Help
Powered by ViewVC 1.1.22