Changeset 1242 for trunk/libIGCM/libIGCM_config/libIGCM_config.ksh
- Timestamp:
- 10/06/15 09:34:04 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_config/libIGCM_config.ksh
r1238 r1242 22 22 23 23 # config.card path 24 config Path=$124 configCardPath=$1 25 25 26 26 #================================== … … 29 29 #================================== 30 30 # Read libIGCM compatibility version in config.card 31 IGCM_card_DefineVariableFromOption ${config Path} Compatibility libIGCM31 IGCM_card_DefineVariableFromOption ${configCardPath} Compatibility libIGCM 32 32 CompatibilityTag=${config_Compatibility_libIGCM} 33 33 … … 41 41 IGCM_debug_Print 1 "DefineArrayFromOption : config_UserChoices" 42 42 43 IGCM_card_DefineArrayFromSection ${config Path} UserChoices43 IGCM_card_DefineArrayFromSection ${configCardPath} UserChoices 44 44 for option in ${config_UserChoices[*]} ; do 45 IGCM_card_DefineVariableFromOption ${config Path} UserChoices ${option}45 IGCM_card_DefineVariableFromOption ${configCardPath} UserChoices ${option} 46 46 eval auxprint=\${config_UserChoices_${option}} 47 47 IGCM_debug_Print 3 "${option} : ${auxprint}" … … 53 53 IGCM_debug_Print 1 "DefineArrayFromOption : config_Ensemble" 54 54 55 IGCM_card_DefineArrayFromSection ${config Path} Ensemble55 IGCM_card_DefineArrayFromSection ${configCardPath} Ensemble 56 56 for option in ${config_Ensemble[*]} ; do 57 IGCM_card_DefineVariableFromOption ${config Path} Ensemble ${option}57 IGCM_card_DefineVariableFromOption ${configCardPath} Ensemble ${option} 58 58 eval auxprint=\${config_Ensemble_${option}} 59 59 IGCM_debug_Print 3 "${option} : ${auxprint}" … … 65 65 IGCM_debug_Print 1 "DefineArrayFromOption : config_Post" 66 66 67 IGCM_card_DefineArrayFromSection ${config Path} Post67 IGCM_card_DefineArrayFromSection ${configCardPath} Post 68 68 for option in ${config_Post[*]} ; do 69 IGCM_card_DefineVariableFromOption ${config Path} Post ${option}69 IGCM_card_DefineVariableFromOption ${configCardPath} Post ${option} 70 70 eval auxprint=\${config_Post_${option}} 71 71 IGCM_debug_Print 3 "${option} : ${auxprint}" … … 571 571 572 572 #=================================== 573 function IGCM_config_ConfigureExe xution573 function IGCM_config_ConfigureExecution 574 574 { 575 IGCM_debug_PushStack " IGCM_config_ConfigureExe xution"576 577 echo 578 IGCM_debug_Print 1 " IGCM_config_ConfigureExe xution"579 echo 580 581 typeset ExeNameIn ExeNameFirst CompNameFirst co mp i575 IGCM_debug_PushStack " IGCM_config_ConfigureExecution" 576 577 echo 578 IGCM_debug_Print 1 " IGCM_config_ConfigureExecution" 579 echo 580 581 typeset ExeNameIn ExeNameFirst CompNameFirst configCardPath comp i 582 582 typeset tempvar tempvarMPI tempvarNOD NbElts NbExec 583 584 # config.card path 585 configCardPath=$1 583 586 584 587 coreNumber=0 … … 595 598 596 599 IGCM_debug_Print 1 ${comp} 600 601 # Manage component executable 602 IGCM_card_DefineArrayFromOption ${configCardPath} Executable ${comp} 597 603 598 604 eval ExeNameIn=\${config_Executable_${comp}[0]} … … 722 728 723 729 IGCM_debug_Print 1 "MPI/OMP treatment coreNumber = ${coreNumber}" 724 725 IGCM_debug_PopStack "IGCM_config_ConfigureExexution" 730 IGCM_debug_Print 1 "MPI/OMP treatment mpiTasks = ${mpiTasks}" 731 IGCM_debug_Print 1 "MPI/OMP treatment openMPthreads = ${openMPthreads}" 732 IGCM_debug_Print 1 "MPI/OMP treatment executionType = ${executionType}" 733 734 IGCM_debug_PopStack "IGCM_config_ConfigureExecution" 726 735 } 727 736 … … 958 967 if [ ${Period} -eq 1 ]; then 959 968 # Define the execution context (MPMD, SPMD, MPI/OMP ...) 960 IGCM_config_ConfigureExe xution969 IGCM_config_ConfigureExecution ${SUBMIT_DIR}/config.card 961 970 # Create the execution script for the current context 962 971 IGCM_sys_build_execution_scripts
Note: See TracChangeset
for help on using the changeset viewer.