/[MITgcm]/MITgcm_contrib/heimbach/OpenAD/code_shallow_openad3/cb2m1.csh
ViewVC logotype

Annotation of /MITgcm_contrib/heimbach/OpenAD/code_shallow_openad3/cb2m1.csh

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


Revision 1.1 - (hide annotations) (download) (as text)
Tue Aug 1 15:44:28 2006 UTC (18 years, 11 months ago) by utke
Branch: MAIN
File MIME type: application/x-csh
gmredi enabled setup

1 utke 1.1 #!/bin/csh -f
2     foreach f ( $* )
3     echo 'converting '$f.h
4     awk -f cb2m1.awk $f.h > ${f}_mod.FF90_temp.001
5     echo ' MODULE '${f}_mod > ${f}_mod.FF90_temp.002
6     echo '#include "CPP_OPTIONS.h"' >> ${f}_mod.FF90_temp.002
7     echo '#include "CPP_EEOPTIONS.h"' >> ${f}_mod.FF90_temp.002
8     echo '#include "GMREDI_OPTIONS.h"' >> ${f}_mod.FF90_temp.002
9     if ( ${f} != 'SIZE' ) then
10     echo ' use SIZE_mod' >> ${f}_mod.FF90_temp.002
11     endif
12     if ( ${f} != 'EEPARAMS' && ${f} != 'SIZE') then
13     echo ' use EEPARAMS_mod' >> ${f}_mod.FF90_temp.002
14     endif
15     if ( ${f} != 'PARAMS' && ${f} != 'EEPARAMS' && ${f} != 'SIZE') then
16     echo ' use PARAMS_mod' >> ${f}_mod.FF90_temp.002
17     endif
18     cat ${f}_mod.FF90_temp.001 >> ${f}_mod.FF90_temp.002
19     echo ' END MODULE' ${f}_mod >> ${f}_mod.FF90_temp.002
20     cp ${f}_mod.FF90_temp.002 ${f}_mod.FF90
21     end
22     \rm *_mod.FF90_temp.*
23    
24     foreach f ( *_mod.FF90 )
25     grep '^#' $f > ${f:r}.h_temp.001
26     echo ' USE '${f:r} >> ${f:r}.h_temp.001
27     cp ${f:r}.h_temp.001 ${f:r}.h
28     end
29     \rm *_mod.h_temp.*

  ViewVC Help
Powered by ViewVC 1.1.22