316 |
-clean Do "make CLEAN" after compiling and testing. |
-clean Do "make CLEAN" after compiling and testing. |
317 |
-shorttest Don't compare numeric output for mean and s.d. of variables. |
-shorttest Don't compare numeric output for mean and s.d. of variables. |
318 |
-noieee By default, $0 uses the -ieee option for genmake. This turns it off. |
-noieee By default, $0 uses the -ieee option for genmake. This turns it off. |
319 |
|
-cleanup Aggresively removes all model output, executables and object files |
320 |
|
and then exits. Use with care. |
321 |
|
|
322 |
Normal usage: |
Normal usage: |
323 |
$0 * Configure, compile, run and analyze in all experiment directories |
$0 * Configure, compile, run and analyze in all experiment directories |
336 |
fi |
fi |
337 |
} |
} |
338 |
|
|
339 |
|
clean_up() |
340 |
|
{ |
341 |
|
# Find all executables, object files, CPP'd source and model output |
342 |
|
# and DELETE it. |
343 |
|
for opt in '-name mitgcmuv*' '-name *.o' '-name *.f' '-name *.c' '-path *results -prune -o -name *.meta' '-path *results -prune -o -name *.data' '-type l' |
344 |
|
do |
345 |
|
echo Cleaning: find . $opt -exec rm {} \; |
346 |
|
find . $opt -exec rm {} \; |
347 |
|
done |
348 |
|
} |
349 |
|
|
350 |
############################################################################### |
############################################################################### |
351 |
|
|
352 |
# Main function |
# Main function |
365 |
for arg in $@ |
for arg in $@ |
366 |
do |
do |
367 |
case $arg in |
case $arg in |
368 |
|
-cleanup) clean_up; exit 0;; |
369 |
-quick) quick=1;; |
-quick) quick=1;; |
370 |
-verbose) verbose=2;; |
-verbose) verbose=2;; |
371 |
-debug) debug=1;; |
-debug) debug=1;; |