Last change
on this file since 4178 was
4178,
checked in by dubos, 5 years ago
|
simple_physics : reorganization
|
-
Property svn:executable set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | export OMP_STACKSIZE=800M # Max stack size for open MP |
---|
4 | export OMP_NUM_THREADS=$2 # Number of openMP processes (threads) |
---|
5 | # ulimit -s unlimited # Allowing illimted memory for ... |
---|
6 | mkdir -p WORK$$ ; mv *_0*nc WORK$$ # saving old files |
---|
7 | |
---|
8 | /usr/bin/mpirun -np $1 $3 |
---|
9 | |
---|
10 | ############################################################################# |
---|
11 | # Reconstructing netcdf files from fragments comming from parallel execution |
---|
12 | # file_0000.nc file_0001.nc ... > file.nc |
---|
13 | # Using the rebuild commend available on ..../modipsl/bin/rebuild |
---|
14 | ############################################################################# |
---|
15 | |
---|
16 | modipsl=`pwd | sed -e 's/modipsl.*.$/modipsl/'` |
---|
17 | for f in `ls *_0000.nc` ; do |
---|
18 | file=`echo $f | sed -e 's/_0000.nc//'` ; echo Rebuild for $file |
---|
19 | if [ -f $file.nc ] ; then |
---|
20 | echo The $file.nc file already exists |
---|
21 | echo remove it and run |
---|
22 | echo $modipsl/bin/rebuild -o $file.nc ${file}_0*.nc |
---|
23 | echo manually |
---|
24 | else |
---|
25 | $modipsl/bin/rebuild -o $file.nc ${file}_0*.nc |
---|
26 | if [ -f $file.nc ] ; then \rm -f ${file}_0*.nc ; fi |
---|
27 | fi |
---|
28 | done |
---|
29 | |
---|
30 | echo En cas de probleme a l execution, essayer d activer |
---|
31 | echo ulimit -s unlimited |
---|
Note: See
TracBrowser
for help on using the repository browser.