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

Contents of /MITgcm_contrib/heimbach/OpenAD/code_shallow_openad2/cb2m1.csh

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


Revision 1.2 - (show annotations) (download) (as text)
Thu Dec 19 16:10:14 2013 UTC (11 years, 7 months ago) by utke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
File MIME type: application/x-csh
FILE REMOVED
stale

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 if ( ${f} != 'SIZE' ) then
9 echo ' use SIZE_mod' >> ${f}_mod.FF90_temp.002
10 endif
11 if ( ${f} != 'EEPARAMS' && ${f} != 'SIZE') then
12 echo ' use EEPARAMS_mod' >> ${f}_mod.FF90_temp.002
13 endif
14 if ( ${f} != 'PARAMS' && ${f} != 'EEPARAMS' && ${f} != 'SIZE') then
15 echo ' use PARAMS_mod' >> ${f}_mod.FF90_temp.002
16 endif
17 cat ${f}_mod.FF90_temp.001 >> ${f}_mod.FF90_temp.002
18 echo ' END MODULE' ${f}_mod >> ${f}_mod.FF90_temp.002
19 cp ${f}_mod.FF90_temp.002 ${f}_mod.FF90
20 end
21 \rm *_mod.FF90_temp.*
22
23 foreach f ( *_mod.FF90 )
24 grep '^#' $f > ${f:r}.h_temp.001
25 echo ' USE '${f:r} >> ${f:r}.h_temp.001
26 cp ${f:r}.h_temp.001 ${f:r}.h
27 end
28 \rm *_mod.h_temp.*

  ViewVC Help
Powered by ViewVC 1.1.22