source: trunk/WRF.COMMON/WRFV2/mars_lmd/libf/generate2 @ 3094

Last change on this file since 3094 was 333, checked in by aslmd, 13 years ago

MESOSCALE: tests OK for changes in previous commit. corrected another instance of the infamous rad/deg bug! also fixed an issue with nesting, functions are not considered in physics duplication. results look good in a typical Hellas winter case [with old physics].

  • Property svn:executable set to *
File size: 914 bytes
Line 
1#script
2# execute: find * -exec generate2 {} \;
3# change number sed -e s/d2/d3/g generate2 > generate3
4
5sed -e s/'[cC][aA][lL][lL] '/'call d2_'/g ${1} | sed -e s/'call d2_[aA][bB][oO][rR][tT]'/'call ABORT'/g | sed -e s/'call d2_[eE][xX][iI][tT]'/'call EXIT'/g | sed -e s/'firstcall d2_'/'firstcall '/g | sed -e s/'lastcall d2_'/'lastcall '/g | sed -e s/'[sS][uU][bB][rR][oO][uU][tT][iI][nN][eE] '/'subroutine d2_'/g | sed -e s/'callphys.def'/'callphysd2_.def '/g | sed -e s/'diagfi.nc'/'diagfid2_.nc'/g | sed -e s/'[iI][nN][cC][lL][uU][dD][eE] "'/'include "d2_'/g | sed -e s/"[iI][nN][cC][lL][uU][dD][eE] '"/"include 'd2_"/g | sed -e s+"[cC][oO][mM][mM][oO][nN]/"+"common/d2_"+g | sed -e s+"[cC][oO][mM][mM][oO][nN] /"+"common /d2_"+g | sed -e s+"d2_netcdf.inc"+"netcdf.inc"+g | sed -e s+"isitice"+"d2_isitice"+g | sed -e s+"nplatcrocus"+"d2_nplatcrocus"+g | sed -e s+"splatcrocus"+"d2_splatcrocus"+g > d2_${1}
6
7
Note: See TracBrowser for help on using the repository browser.