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

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

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


Revision 1.2 - (hide annotations) (download)
Mon May 7 18:25:47 2007 UTC (18 years, 2 months ago) by utke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
updated conversion

1 utke 1.1 BEGIN { commonDecl = 0}
2     /^ .*/ {commonDecl = 0 }
3     /^[^ ]/ && !/^#ifdef / && !/^#endif/ && !/^#if / && !/^#else/ {commonDecl = 0 }
4     /^ *COMMON/ || /^ *common/ { commonDecl = 1 }
5     / &/ { if (commonDecl != 1) {print} }
6     /^#ifdef / || /^#endif/ || /^#if / || /^#else/ { if (commonDecl == 1) {print} }
7     {if (commonDecl ==0 ) print }
8     END {}

  ViewVC Help
Powered by ViewVC 1.1.22