Changeset 3499
- Timestamp:
- Nov 8, 2024, 10:55:50 AM (6 weeks ago)
- Location:
- trunk/LMDZ.COMMON
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/build_gcm
r3484 r3499 44 44 45 45 # run "fcm build" command 46 ${dirname}fcm build $* 46 ${dirname}fcm build $* || (exit 1) 47 47 if [ $? != 0 ]; then # check if fcm command worked 48 exit 1 48 echo "Removing .lock" 49 \rm -f '.lock' 50 exit 1 49 51 fi 50 52 -
trunk/LMDZ.COMMON/makelmdz_fcm
r3484 r3499 682 682 ###################################################################### 683 683 684 685 SUFF_NAME=_${dim_full} 684 if [[ $libphy != "true" ]];then 685 SUFF_NAME=_${dim_full} 686 fi 686 687 SUFF_NAME=${SUFF_NAME}_phy${physique} 687 688 … … 731 732 SUFF_NAME=${SUFF_NAME}_inca 732 733 fi 733 SUFF_D IR=734 SUFF_DEBUG= 734 735 if [[ "$compil_mod" == "debug" ]] 735 736 then 736 SUFF_D IR=_debug737 fi 738 SUFF_DIR=${SUFF_NAME} 737 SUFF_DEBUG=_debug 738 fi 739 SUFF_DIR=${SUFF_NAME}${SUFF_DEBUG} 739 740 740 741 if [[ $libphy == "true" ]] … … 749 750 code="" 750 751 SUFF_NAME="" 752 # SUFF_DIR= 751 753 else 752 754 SUFF_NAME=${SUFF_NAME}.e … … 803 805 # cleanup before compiling 804 806 if [[ $libphy != "true" ]]; then 805 rm -f bin/${code}${SUFF_NAME} 806 fi 807 rm -f $LIBOGCM/${arch}${SUFF_NAME}/.config/fcm.bld.lock 808 ./build_gcm ${fcm_path} -j $job $full 809 if [ $? != 0 ]; then # check if fcm command worked 810 exit 1 811 fi 807 rm -f bin/${code}${SUFF_NAME} 808 fi 809 rm -f $LIBOGCM/${arch}${SUFF_DIR}/.config/fcm.bld.lock 810 811 function delete_dim_h { 812 if [[ -r $LIBFGCM/grid/dimensions.h ]];then 813 echo "Removing dimensions.h" 814 \rm -f $LIBFGCM/grid/dimensions.h 815 fi 816 } 817 818 ./build_gcm ${fcm_path} -j $job $full || (echo "Build gcm failed."; delete_dim_h; exit 1) 812 819 813 820 rm -rf tmp_src 814 821 rm -rf config 815 ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config config 816 ln -s $LIBOGCM/${arch}${SUFF_NAME}/.config/ppsrc tmp_src 817 818 819 if [[ -r $LIBFGCM/grid/dimensions.h ]] 820 then 821 # Cleanup: remove dimension.h file 822 \rm -f $LIBFGCM/grid/dimensions.h 823 fi 822 ln -s $LIBOGCM/${arch}${SUFF_DIR}/.config config 823 ln -s $LIBOGCM/${arch}${SUFF_DIR}/.config/ppsrc tmp_src 824 825 delete_dim_h
Note: See TracChangeset
for help on using the changeset viewer.