Changeset 833 for trunk/UTIL
- Timestamp:
- 2008-03-07T14:51:35+01:00 (16 years ago)
- Location:
- trunk/UTIL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/fait_AA_make
r687 r833 339 339 do 340 340 bn=`basename $i .f` 341 if [ "${bn}" != "${MAIN}" ]342 then343 if [ "${bn}" != "agrif2model" ]344 then345 341 echo "\\" 346 342 echo " \$(MODEL_LIB)($bn.o)\c" 347 fi348 fi349 343 done 350 344 … … 390 384 do 391 385 bn=`basename $i .F` 392 if [ "${bn}" != "${MAIN}" ]393 then394 if [ "${bn}" != "agrif2model" ]395 then396 386 echo "\\" 397 387 echo " \$(MODEL_LIB)($bn.o)\c" 398 fi399 fi400 388 done 401 389 … … 457 445 for fuse0 in `sed -n 's/^[ ]*[uU][sS][eE] [ ]*\([^!,;]*\).*/\1/p' $inc | sort -u` 458 446 do 459 if [ $fuse0 != "ioipsl" ] 460 then 461 if [ $fuse0 != "Agrif_Util" ] 462 then 463 if [ $fuse0 != "Agrif_Types" ] 464 then 465 if [ $fuse0 != "netcdf" ] 466 then 447 [ -f $fuse0.[hfF]90 ] || continue 467 448 lfuse0=$fuse0.f90 468 449 [ -f $fuse0.F90 ] && lfuse0=$fuse0.F90 469 450 luse0="$luse0\n$lfuse0\n\$(MODEL_LIB)($fuse0.o)" 470 fi471 fi472 fi473 fi474 451 done 475 452 … … 480 457 for fuse0 in `sed -n 's/^[ ]*[uU][sS][eE] [ ]*\([^!,;]*\).*/\1/p' $inc2 | sort -u` 481 458 do 482 if [ $fuse0 != "ioipsl" ] 483 then 484 if [ $fuse0 != "Agrif_Util" ] 485 then 486 if [ $fuse0 != "Agrif_Types" ] 487 then 488 if [ $fuse0 != "netcdf" ] 489 then 459 [ -f $fuse0.[hfF]90 ] || continue 490 460 lfuse0=$fuse0.f90 491 461 [ -f $fuse0.F90 ] && lfuse0=$fuse0.F90 492 462 luse0="$luse0\n$lfuse0\n\$(MODEL_LIB)($fuse0.o)" 493 fi494 fi495 fi496 fi497 463 done 498 464 done … … 502 468 for fuse1 in `sed -n 's/^[ ]*[uU][sS][eE] [ ]*\([^!,;]*\).*/\1/p' $fic | sort -u` 503 469 do 504 if [ $fuse1 != "ioipsl" ] 505 then 506 if [ $fuse1 != "Agrif_Util" ] 507 then 508 if [ $fuse1 != "Agrif_Types" ] 509 then 510 if [ $fuse1 != "netcdf" ] 511 then 470 [ -f $fuse1.[hfF]90 ] || continue 512 471 lfuse1=$fuse1.f90 513 472 [ -f $fuse1.F90 ] && lfuse1=$fuse1.F90 … … 515 474 for fuse2 in `sed -n 's/^[ ]*[uU][sS][eE] [ ]*\([^!,;]*\).*/\1/p' $lfuse1 | sort -u` 516 475 do 517 if [ $fuse2 != "ioipsl" ] 518 then 519 if [ $fuse2 != "Agrif_Util" ] 520 then 521 if [ $fuse2 != "Agrif_Types" ] 522 then 523 if [ $fuse2 != "netcdf" ] 524 then 476 [ -f $fuse2.[hfF]90 ] || continue 525 477 lfuse2=$fuse2.f90 526 478 [ -f $fuse2.F90 ] && lfuse2=$fuse2.F90 … … 529 481 for fuse3 in `sed -n 's/^#[ ]*[uU][sS][eE] [ ]*\([^!,;]*\).*/\1/p' $lfuse2 | sort -u` 530 482 do 531 if [ $fuse3 != "ioipsl" ] 532 then 533 if [ $fuse3 != "Agrif_Util" ] 534 then 535 if [ $fuse3 != "Agrif_Types" ] 536 then 537 if [ $fuse3 != "netcdf" ] 538 then 483 [ -f $fuse3.[hfF]90 ] || continue 539 484 luse3="$luse3\n$lfuse3\n\$(MODEL_LIB)($fuse3.o)" 540 fi541 fi542 fi543 fi544 485 done 545 fi546 fi547 fi548 fi549 486 done 550 fi551 fi552 fi553 fi554 487 done 555 488 #- … … 652 585 echo ' ln -sf ../OPA_SRC/IOM/*.[Ffh]90 . ; \' 653 586 echo ' fi ' 654 echo ' @check=`grep LIM_SRC .config` ; \'587 echo ' @check=`grep LIM_SRC_3 .config` ; \' 655 588 echo ' if [ -n "$$check" ] ; then \' 656 echo ' echo " use LIM_SRC files" ; \' 657 echo ' ln -sf ../LIM_SRC/*.[Ffh]90 . ; \' 589 echo ' echo " use LIM_SRC_3 files" ; \' 590 echo ' ln -sf ../LIM_SRC_3/*.[Ffh]90 . ; \' 591 echo ' fi ' 592 echo ' @check=`grep LIM_SRC_2 .config` ; \' 593 echo ' if [ -n "$$check" ] ; then \' 594 echo ' echo " use LIM_SRC_2 files" ; \' 595 echo ' ln -sf ../LIM_SRC_2/*.[Ffh]90 . ; \' 658 596 echo ' fi ' 659 597 echo ' @check=`grep C1D_SRC .config` ; \' -
trunk/UTIL/fait_config
r798 r833 26 26 # Example 1 : in order to create a GYRE_TRC configuration : 27 27 # 1. In this script, change LIST to LIST="ORCA2_LIM \nGYRE \nGYRE_TRC" 28 # 2. In this script, add set -A DIR_GYRE_TRC OPA_SRC LIM_SRC TOP_SRC C1D_SRC, take care of the syntax28 # 2. In this script, add set -A DIR_GYRE_TRC OPA_SRC LIM_SRC_3 TOP_SRC C1D_SRC, take care of the syntax 29 29 # 3. Run fait_config GYRE_TRC 30 30 # Example 2 : in order to create an OFFLINE_TRC configuration : … … 33 33 # 3. Run fait_config OFFLINE_TRC 34 34 35 LIST="ORCA2_LIM \nGYRE "36 set -A DIR_ORCA2_LIM OPA_SRC LIM_SRC C1D_SRC NST_SRC37 set -A DIR_GYRE OPA_SRC LIM_SRC C1D_SRC38 set -A DIR_GYRE_LOBSTER OPA_SRC LIM_SRC C1D_SRC TOP_SRC35 LIST="ORCA2_LIM \nGYRE \nGYRE_LOBSTER" 36 set -A DIR_ORCA2_LIM OPA_SRC LIM_SRC_3 C1D_SRC NST_SRC 37 set -A DIR_GYRE OPA_SRC LIM_SRC_3 C1D_SRC 38 set -A DIR_GYRE_LOBSTER OPA_SRC LIM_SRC_3 C1D_SRC TOP_SRC 39 39 40 40 ################################### … … 96 96 while [ i -lt $NDIR ] 97 97 do 98 if [ "${TAB[i]}" = "LIM_SRC" ]; then 99 ln -sf ../LIM_SRC/*.[Ffh]90 . 98 if [ "${TAB[i]}" = "LIM_SRC_3" ]; then 99 ln -sf ../LIM_SRC_3/*.[Ffh]90 . 100 101 elif [ "${TAB[i]}" = "LIM_SRC_2" ]; then 102 ln -sf ../LIM_SRC_2/*.[Ffh]90 . 100 103 101 104 elif [ "${TAB[i]}" = "C1D_SRC" ]; then
Note: See TracChangeset
for help on using the changeset viewer.