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

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

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


Revision 1.5 - (show annotations) (download) (as text)
Fri Jun 21 19:58:16 2013 UTC (10 years, 11 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint64o, checkpoint64q, checkpoint64p, checkpoint64n, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l
Changes since 1.4: +3 -0 lines
File MIME type: application/x-csh
OAD streamice support

1 #!/bin/csh -f
2 set fileName=${1:r}
3 set awkScript=${2}
4 echo ' MODULE '${fileName}_mod > ${fileName}_temp
5 echo '#include "CPP_OPTIONS.h"' >> ${fileName}_temp
6 echo '#include "CPP_EEOPTIONS.h"' >> ${fileName}_temp
7 if ( ${fileName} == 'DIC_LOAD' ) then
8 echo '#include "DIC_OPTIONS.h"' >> ${fileName}_temp
9 endif
10 if ( ${fileName} == 'GAD' ) then
11 echo '#include "GAD_OPTIONS.h"' >> ${fileName}_temp
12 endif
13 if ( ${fileName} == 'GMREDI' ) then
14 echo '#include "GMREDI_OPTIONS.h"' >> ${fileName}_temp
15 endif
16 if ( ${fileName} == 'MOM_VISC' ) then
17 echo '#include "MOM_COMMON_OPTIONS.h"' >> ${fileName}_temp
18 endif
19 if ( ${fileName} == 'SHAP_FILT' ) then
20 echo '#include "SHAP_FILT_OPTIONS.h"' >> ${fileName}_temp
21 endif
22 if ( ${fileName} == 'STREAMICE' ) then
23 echo '#include "STREAMICE_OPTIONS.h"' >> ${fileName}_temp
24 endif
25 if ( ${fileName} != 'SIZE' && ${fileName} != 'MNC_COMMON' && ${fileName} != 'EEPARAMS' ) then
26 echo ' use SIZE_mod' >> ${fileName}_temp
27 endif
28 if ( ${fileName} != 'EEPARAMS' && ${fileName} != 'SIZE' && ${fileName} != 'MNC_COMMON' ) then
29 echo ' use EEPARAMS_mod' >> ${fileName}_temp
30 endif
31 if ( ${fileName} != 'PARAMS' && ${fileName} != 'EEPARAMS' && ${fileName} != 'SIZE' && ${fileName} != 'MNC_COMMON' && ${fileName} != 'GAD' && ${fileName} != 'GRID' ) then
32 echo ' use PARAMS_mod' >> ${fileName}_temp
33 endif
34 if ( ${fileName} == 'ctrl' || ${fileName} == 'ctrl_dummy' || ${fileName} == 'CTRL_GENARR' ) then
35 echo ' use CTRL_SIZE_mod' >> ${fileName}_temp
36 endif
37 if ( ${fileName} == 'PTRACERS_FIELDS' || ${fileName} == 'PTRACERS_PARAMS' || \
38 ${fileName} == 'PTRACERS_START' || ${fileName} == 'PTRACERS_TAVE' || \
39 ${fileName} == 'GCHEM_FIELDS' ) then
40 echo ' use PTRACERS_SIZE_mod' >> ${fileName}_temp
41 endif
42 #echo awk -f ${awkScript} ${fileName}.h
43 awk -f ${awkScript} ${fileName}.h | grep -v mpif.h >> ${fileName}_temp
44 echo ' END MODULE' ${fileName}_mod >> ${fileName}_temp
45 cp ${fileName}_temp ${fileName}_mod.FF90
46 \rm ${fileName}_temp

  ViewVC Help
Powered by ViewVC 1.1.22