Changeset 849 for trunk/LMDZ.COMMON/makelmdz
- Timestamp:
- Nov 22, 2012, 9:10:25 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/makelmdz
r270 r849 544 544 ################################################################# 545 545 546 source_code=${code}.F 547 if [[ -r $LMDGCM/libf/dyn${dimc}d${FLAG_PARA}/${code}.F90 ]] 548 then 549 source_code=${code}.F90 546 # find code suffix and directory where code is located 547 if [[ -r $LMDGCM/libf/dyn${dimc}d${FLAG_PARA}/${code}.F ]] 548 then 549 source_code=${code}.F 550 code_dir=dyn${dimc}d${FLAG_PARA} 551 else 552 if [[ -r $LMDGCM/libf/dyn${dimc}d${FLAG_PARA}/${code}.F90 ]] 553 then 554 source_code=${code}.F90 555 code_dir=dyn${dimc}d${FLAG_PARA} 556 else 557 if [[ -r $LMDGCM/libf/phy${physique}/${code}.F ]] 558 then 559 source_code=${code}.F 560 code_dir=phy${physique} 561 else 562 # last possibility: 563 if [[ -r $LMDGCM/libf/phy${physique}/${code}.F ]] 564 then 565 source_code=${code}.F90 566 code_dir=phy${physique} 567 else 568 echo "Error: cannot find ${code}.F[90]" 569 echo " neither in dyn${dimc}d${FLAG_PARA} nor in phy${physique}" 570 exit 571 fi 572 fi 573 fi 550 574 fi 551 575 … … 625 649 MOD_SUFFIX="mod" \ 626 650 AR=$arcommand \ 651 DIRMAIN=$code_dir \ 627 652 SOURCE=$source_code \ 628 653 PROG=$code … … 654 679 MOD_SUFFIX="mod" \ 655 680 AR=$arcommand \ 681 DIRMAIN=$code_dir \ 656 682 SOURCE=$source_code \ 657 683 PROG=$code
Note: See TracChangeset
for help on using the changeset viewer.