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

Diff of /MITgcm_contrib/heimbach/OpenAD/code_shallow_openad/cb2m1.awk

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

revision 1.1 by heimbach, Tue Dec 13 15:15:29 2005 UTC revision 1.2 by utke, Thu Jul 6 18:25:27 2006 UTC
# Line 1  Line 1 
1  BEGIN { commonDecl = 0}  BEGIN { commonDecl = 0}
2  /^      .*/ {commonDecl = 0 }  /^      .*/ {commonDecl = 0 }
3  /^[^ ]/ {commonDecl = 0 }  /^[^ ]/ && !/^#ifdef / && !/^#endif/ && !/^#if / && !/^#else/  {commonDecl = 0 }
4  /^       *COMMON/ || /^       *common/ { commonDecl = 1 }  /^       *COMMON/ || /^       *common/ { commonDecl = 1 }
5  /      &/ { if (commonDecl != 1) {print} }  /      &/ { if (commonDecl != 1) {print} }
6    /^#ifdef / || /^#endif/ || /^#if / || /^#else/ { if (commonDecl == 1) {print} }
7  {if (commonDecl ==0 ) print }  {if (commonDecl ==0 ) print }
8  END {}  END {}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22