/[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.2 - (hide annotations) (download) (as text)
Thu Mar 21 18:09:12 2013 UTC (11 years, 2 months ago) by jahn
Branch: MAIN
CVS Tags: checkpoint64f
Changes since 1.1: +4 -1 lines
File MIME type: application/x-csh
add dependencies for genarr and the ptracers package

1 heimbach 1.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 jahn 1.2 if ( ${fileName} == 'ctrl' || ${fileName} == 'ctrl_dummy' || ${fileName} == 'CTRL_GENARR' ) then
18 heimbach 1.1 echo ' use CTRL_SIZE_mod' >> ${fileName}_temp
19     endif
20 jahn 1.2 if ( ${fileName} == 'PTRACERS_FIELDS' || ${fileName} == 'PTRACERS_PARAMS' || ${fileName} == 'PTRACERS_START' || ${fileName} == 'PTRACERS_TAVE' || ${fileName} == 'ptracers_ad_check_lev1_dir' || ${fileName} == 'ptracers_ad_check_lev2_dir' || ${fileName} == 'ptracers_ad_check_lev3_dir' || ${fileName} == 'ptracers_ad_check_lev4_dir' || ${fileName} == 'ptracers_adcommon' ) then
21     echo ' use PTRACERS_SIZE_mod' >> ${fileName}_temp
22     endif
23 heimbach 1.1 #echo awk -f ${awkScript} ${fileName}.h
24     awk -f ${awkScript} ${fileName}.h | grep -v mpif.h >> ${fileName}_temp
25     echo ' END MODULE' ${fileName}_mod >> ${fileName}_temp
26     cp ${fileName}_temp ${fileName}_mod.FF90
27     \rm ${fileName}_temp

  ViewVC Help
Powered by ViewVC 1.1.22