Changeset 902
- Timestamp:
- 08/07/13 18:03:59 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh
r897 r902 25 25 for comp in ${config_ListOfComponents[*]} ; do 26 26 27 # Define component 27 # Define component 28 28 IGCM_card_DefineArrayFromOption ${SUBMIT_DIR}/config.card ListOfComponents ${comp} 29 29 eval compname=\${config_ListOfComponents_${comp}[0]} > /dev/null 2>&1 … … 50 50 eval config_comp=\${config_${comp}[*]} > /dev/null 2>&1 51 51 for option in ${config_comp[*]} ; do 52 52 IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/config.card ${comp} ${option} 53 53 done 54 54 IGCM_debug_Print 3 " Found in section config_${comp} : ${config_comp[*]} " … … 265 265 echo 266 266 267 # Only the first time step need InitialStateFiles 267 # Only the first time step need InitialStateFiles 268 268 # otherwise it's BoundaryConditions 269 269 if ( ${FirstInitialize} ) ; then 270 typeset comp compname comptagname card ListFilesName FileName0 NbFiles i i_ 271 typeset file_in_ file_in file_out_ file_out do_init 270 typeset comp compname comptagname card ListFilesName FileName0 NbFiles i i_ 271 typeset file_in_ file_in file_out_ file_out do_init 272 272 for comp in ${config_ListOfComponents[*]} ; do 273 273 # Initialize … … 288 288 289 289 if [ "${do_init}" = "y" ] ; then 290 # Define component 290 # Define component 291 291 eval compname=\${config_ListOfComponents_${comp}[0]} > /dev/null 2>&1 292 292 eval comptagname=\${config_ListOfComponents_${comp}[1]} > /dev/null 2>&1 … … 329 329 #======================================================================= 330 330 # Definition of Smooth modulo function 331 # usage : 331 # usage : 332 332 # IGCM_SmoothModulo StringModulo value 333 333 # … … 335 335 # [min]:[modulo:][max] 336 336 # where : 337 # [] value are optionnals; 337 # [] value are optionnals; 338 338 # empty min equal 1 339 339 # empty max equal infinity … … 343 343 # value : the value to test with the definition 344 344 # 345 # return : true(1)/false(0) 345 # return : true(1)/false(0) 346 346 function IGCM_SmoothModulo 347 347 { … … 356 356 arr[2]=${defVector[2]} 357 357 358 # Test limits : 359 # ${defVector[0]} <= ${2} <= ${defVector[2]} 358 # Test limits : 359 # ${defVector[0]} <= ${2} <= ${defVector[2]} 360 360 # or ${defVector[2]} == -1 361 361 if ( [ ${2} -ge ${defVector[0]} ] && ( [ ${2} -le ${defVector[2]} ] || [ ${defVector[2]} -lt 0 ] ) ) ; then … … 460 460 echo 461 461 462 typeset comp compname comptagname card ListFilesName FileName0 NbFiles i i_ 463 typeset file_in_ file_in file_out_ file_out 462 typeset comp compname comptagname card ListFilesName FileName0 NbFiles i i_ 463 typeset file_in_ file_in file_out_ file_out 464 464 465 465 if [ ${Period} = 1 ]; then … … 574 574 typeset comp compname comptagname card ListFilesName FileName0 NbFiles i i_ file_in file_out 575 575 for comp in ${config_ListOfComponents[*]} ; do 576 # Define component 576 # Define component 577 577 eval compname=\${config_ListOfComponents_${comp}[0]} > /dev/null 2>&1 578 578 eval comptagname=\${config_ListOfComponents_${comp}[1]} > /dev/null 2>&1 … … 596 596 (( i_ = i+1 )) 597 597 eval file_out_=\${${ListFilesName}[$i_]} > /dev/null 2>&1 598 eval file_out=${file_out_} 599 600 IGCM_sys_Cp ${file_in} ${file_out} 598 eval file_out=${file_out_} 599 600 IGCM_sys_Cp ${file_in} ${file_out} 601 601 IGCM_comp_PrepareDeletedFiles ${file_in} ${file_out} 602 602 … … 621 621 typeset Date_tmp Date_r Path_r do_start CompOldName Path_OUT Path_BUF 622 622 typeset Buffered Archived Tared PotentialTarFile IsMatching TarFileFound 623 typeset comp compname comptagname card ListFilesName FileName0 NbFiles i i_ 623 typeset comp compname comptagname card ListFilesName FileName0 NbFiles i i_ 624 624 typeset file_in file_out file_in_ file_out_ file_in_Name 625 625 typeset -Z4 j4 … … 629 629 630 630 for comp in ${config_ListOfComponents[*]} ; do 631 # Define component 631 # Define component 632 632 eval compname=\${config_ListOfComponents_${comp}[0]} > /dev/null 2>&1 633 633 eval comptagname=\${config_ListOfComponents_${comp}[1]} > /dev/null 2>&1 … … 723 723 IGCM_debug_Print 3 "No restart file in the buffer nor in the archive directory" 724 724 IGCM_debug_Print 3 "${Path_OUT}*.${extension_in} do not exist" 725 IGCM_debug_Print 3 " Tared restart case then"725 IGCM_debug_Print 3 "Restart files will now be searched for in : ${RestartPath}/${RestartJobName}/RESTART" 726 726 Buffered=false 727 727 Archived=false … … 743 743 done 744 744 else 745 IGCM_debug_Print 3 "${RestartPath}/${RestartJobName}/RESTART do not currently exist" 746 IGCM_debug_Print 3 "It must exist and contain tared restart files" 745 IGCM_debug_Print 3 "Restart files were not found!" 746 IGCM_debug_Print 3 "Restart files have been searched for in buffer and archive directory." 747 IGCM_debug_Print 3 "They have been searched for in packed and unpacked format." 747 748 IGCM_debug_Exit "Please double check restart settings in config.card" 748 749 IGCM_debug_Verif_Exit … … 837 838 else 838 839 IGCM_debug_Print 3 "No restart file in the buffer nor in the archive directory" 839 IGCM_debug_Print 3 " Tared restart case then"840 IGCM_debug_Print 3 "Restart files will now be searched for in : ${R_SAVE}/RESTART" 840 841 Buffered=false 841 842 Archived=false … … 910 911 echo 911 912 912 typeset ExeNameIn ExeNameOut 913 typeset ExeNameIn ExeNameOut 913 914 typeset comp compname comptagname 914 915 for comp in ${config_ListOfComponents[*]} ; do 915 # Define component 916 # Define component 916 917 eval compname=\${config_ListOfComponents_${comp}[0]} > /dev/null 2>&1 917 918 eval comptagname=\${config_ListOfComponents_${comp}[1]} > /dev/null 2>&1 … … 941 942 echo 942 943 943 typeset ExeNameIn ExeNameOut 944 typeset ExeNameIn ExeNameOut 944 945 typeset comp compname comptagname 945 946 for comp in ${config_ListOfComponents[*]} ; do 946 # Define component 947 # Define component 947 948 eval compname=\${config_ListOfComponents_${comp}[0]} > /dev/null 2>&1 948 949 eval comptagname=\${config_ListOfComponents_${comp}[1]} > /dev/null 2>&1 … … 1005 1006 1006 1007 for comp in ${config_ListOfComponents[*]} ; do 1007 # Define component 1008 # Define component 1008 1009 eval compname=\${config_ListOfComponents_${comp}[0]} > /dev/null 2>&1 1009 1010 eval comptagname=\${config_ListOfComponents_${comp}[1]} > /dev/null 2>&1 … … 1128 1129 generic_restart_file_name_outin=$( basename ${file_outin} .nc ) 1129 1130 1130 nb_restart_file=$( ls ${generic_restart_file_name_in}_????.nc 2>/dev/null | wc -l ) 1131 nb_restart_file=$( ls ${generic_restart_file_name_in}_????.nc 2>/dev/null | wc -l ) 1131 1132 if [ ${nb_restart_file} -gt 1 ] ; then 1132 1133 j=0 # BASH LINE NOT NEEDED
Note: See TracChangeset
for help on using the changeset viewer.