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

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

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


Revision 1.1 - (show annotations) (download)
Thu Sep 20 23:12:47 2012 UTC (11 years, 8 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint64
* 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 BEGIN { commonDecl = 0}
2 /^ .*/ {commonDecl = 0 }
3 /^[^ ]/ && !/^#ifdef / && !/^#endif/ && !/^#if / && !/^#else/ && !/^c.*/ && !/^C.*/ {commonDecl = 0 }
4 /^ *COMMON/ || /^ *common/ { commonDecl = 1 }
5 /^#ifdef / || /^#endif/ || /^#if / || /^#else/ { if (commonDecl == 1) {print} }
6 {if (commonDecl ==0 ) print }
7 END {}

  ViewVC Help
Powered by ViewVC 1.1.22