Last change
on this file since 4353 was
4347,
checked in by fhourdin, 23 months ago
|
New functionalities, multi-routine netcdf output
The -nconly option can be used to equip other routines with nc output only
replay_equip.sh -h
to see the options
|
File size:
574 bytes
|
Rev | Line | |
---|
[4337] | 1 | #!/bin/bash |
---|
| 2 | |
---|
[4347] | 3 | |
---|
[4337] | 4 | replay_comment="replay automatic include" |
---|
[4347] | 5 | if [ $# = 0 ] ; then |
---|
| 6 | \rm -f dump_replay*.h mcall_param_replay.F90 dump_ini_module.F90 get_ini_module.F90 input tmp tmp2 |
---|
| 7 | for file in `grep "$replay_comment" *F90 | cut -d: -f1` ; do |
---|
| 8 | sed -i"" -e "/$replay_comment/d" $file |
---|
| 9 | done |
---|
| 10 | else |
---|
| 11 | for file in $* ; do |
---|
| 12 | list_include=`grep $replay_comment $file | grep include | cut -d\" -f2` |
---|
| 13 | echo removing $list_include |
---|
| 14 | \rm -f $list_include |
---|
| 15 | \rm -f dump_replay_`basename $file .F90`_*h |
---|
| 16 | sed -i'' -e "/$replay_comment/d" $file |
---|
| 17 | done |
---|
| 18 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.