/[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.1 - (show annotations) (download) (as text)
Thu Sep 20 23:12:47 2012 UTC (11 years, 7 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint64a, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64c, checkpoint64
File MIME type: application/x-csh
* Merge OAD_support from MITgcm_contrib/heimbach/OpenAD/OAD_support/
  to tools/OAD_support/
* Adjust genmake2 to reflect path change (attempt with ${OADTOOLS})
* Adjust insertTemplateDir.bash to reflect path change
Seems to work.

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 echo '#include "GMREDI_OPTIONS.h"' >> ${fileName}_temp
8 if ( ${fileName} != 'SIZE' && ${fileName} != 'MNC_COMMON' && ${fileName} != 'EEPARAMS' ) then
9 echo ' use SIZE_mod' >> ${fileName}_temp
10 endif
11 if ( ${fileName} != 'EEPARAMS' && ${fileName} != 'SIZE' && ${fileName} != 'MNC_COMMON' ) then
12 echo ' use EEPARAMS_mod' >> ${fileName}_temp
13 endif
14 if ( ${fileName} != 'PARAMS' && ${fileName} != 'EEPARAMS' && ${fileName} != 'SIZE' && ${fileName} != 'MNC_COMMON' && ${fileName} != 'GAD' && ${fileName} != 'GRID' ) then
15 echo ' use PARAMS_mod' >> ${fileName}_temp
16 endif
17 if ( ${fileName} == 'ctrl_dummy' || ${fileName} == 'CTRL_GENARR' ) then
18 echo ' use CTRL_SIZE_mod' >> ${fileName}_temp
19 endif
20 #echo awk -f ${awkScript} ${fileName}.h
21 awk -f ${awkScript} ${fileName}.h | grep -v mpif.h >> ${fileName}_temp
22 echo ' END MODULE' ${fileName}_mod >> ${fileName}_temp
23 cp ${fileName}_temp ${fileName}_mod.FF90
24 \rm ${fileName}_temp

  ViewVC Help
Powered by ViewVC 1.1.22