Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Porting cesm1.2.0, 'underscore' problems

jedwards

CSEG and Liaisons
Staff member
It seems that the problem may be that your compiler is defining the qextname flag by default, this is a non-standard install of the compiler.  You can try putting the flag into a Depends.$(machine) file - look for examples of how to do this in the Machines directory.  In this way you can limit use of this flag to only the shr_sys_mod.F90 file, which is what I think you want to do.
 
For All who have problem with building the models due to flush and chdir functions. After stuied the codes in cesm1.2.1, I find out that the adding the following line in the file scripts/ccsm_utils/Machines/MakefileLDFLAGS+=-brename:.flush__,.flush_ -brename:.chdir_,.chdir solve the problem. By using this configuration, the brename option will be use for building the cesm.exe and this solved the problem. Defining of new Dependend files or adding the above line in Macros, did not solved the problem for me.Best regards 
 
For All who have problem with building the models due to flush and chdir functions. After stuied the codes in cesm1.2.1, I find out that the adding the following line in the file scripts/ccsm_utils/Machines/MakefileLDFLAGS+=-brename:.flush__,.flush_ -brename:.chdir_,.chdir solve the problem. By using this configuration, the brename option will be use for building the cesm.exe and this solved the problem. Defining of new Dependend files or adding the above line in Macros, did not solved the problem for me.Best regards 
 
For All who have problem with building the models due to flush and chdir functions. After stuied the codes in cesm1.2.1, I find out that the adding the following line in the file scripts/ccsm_utils/Machines/MakefileLDFLAGS+=-brename:.flush__,.flush_ -brename:.chdir_,.chdir solve the problem. By using this configuration, the brename option will be use for building the cesm.exe and this solved the problem. Defining of new Dependend files or adding the above line in Macros, did not solved the problem for me.Best regards 
 
For All who have problem with building the models due to flush and chdir functions. After stuied the codes in cesm1.2.1, I find out that the adding the following line in the file scripts/ccsm_utils/Machines/MakefileLDFLAGS+=-brename:.flush__,.flush_ -brename:.chdir_,.chdir solve the problem. By using this configuration, the brename option will be use for building the cesm.exe and this solved the problem. Defining of new Dependend files or adding the above line in Macros, did not solved the problem for me.Best regards 
 
Dear all,I am really sorry for late reply. I just come back from a conference and holiday. To solve the problem discessed above, you can also add the following line in the file scripts/ccsm_utils/Machines/config_compilers.xml: -brename:.flush__,.flush_ -brename:.chdir_,.chdir Sorry again for late reply.Best regards, Wuke
 
Dear all,I am really sorry for late reply. I just come back from a conference and holiday. To solve the problem discessed above, you can also add the following line in the file scripts/ccsm_utils/Machines/config_compilers.xml: -brename:.flush__,.flush_ -brename:.chdir_,.chdir Sorry again for late reply.Best regards, Wuke
 
Dear all,I am really sorry for late reply. I just come back from a conference and holiday. To solve the problem discessed above, you can also add the following line in the file scripts/ccsm_utils/Machines/config_compilers.xml: -brename:.flush__,.flush_ -brename:.chdir_,.chdir Sorry again for late reply.Best regards, Wuke
 
Dear all,I am really sorry for late reply. I just come back from a conference and holiday. To solve the problem discessed above, you can also add the following line in the file scripts/ccsm_utils/Machines/config_compilers.xml: -brename:.flush__,.flush_ -brename:.chdir_,.chdir Sorry again for late reply.Best regards, Wuke
 

jedwards

CSEG and Liaisons
Staff member
Either the gptl library build failed or the cesm link step couldn't find it.   Looking at the link line it looks like you are missing the path to gptl mpiifort -o /home/asampath/CESM/caseout/cesm.exe ccsm_comp_mod.o ccsm_driver.o mrg_mod.o seq_avdata_mod.o seq_diag_mct.o seq_domain_mct.o seq_flux_mct.o seq_frac_mct.o seq_hist_mod.o seq_map_esmf.o seq_map_mod.o seq_mctext_mod.o seq_rest_mod.o  -L/home/asampath/CESM/caseout/lib/ -latm  -L/home/asampath/CESM/caseout/lib/ -lice  -L/home/asampath/CESM/caseout/lib/ -llnd  -L/home/asampath/CESM/caseout/lib/ -locn  -L/home/asampath/CESM/caseout/lib/ -lrof  -L/home/asampath/CESM/caseout/lib/ -lglc  -L/home/asampath/CESM/caseout/lib/ -lwav -L/home/asampath/CESM/caseout/lib -lcsm_share  -L/home/asampath/CESM/caseout/mct/mct -lmct -L/home/asampath/CESM/caseout/mct/mpeu -lmpeu -L/home/asampath/CESM/caseout/pio -lpio -lgptl -L/home/asampath/netcdfall3/lib -lnetcdff -L/home/asampath/netcdfall3/lib -lnetcdf -lnetcdf -L/opt/intel/impi/5.0.3.048/intel64/lib -lmpi  
 

jedwards

CSEG and Liaisons
Staff member
Either the gptl library build failed or the cesm link step couldn't find it.   Looking at the link line it looks like you are missing the path to gptl mpiifort -o /home/asampath/CESM/caseout/cesm.exe ccsm_comp_mod.o ccsm_driver.o mrg_mod.o seq_avdata_mod.o seq_diag_mct.o seq_domain_mct.o seq_flux_mct.o seq_frac_mct.o seq_hist_mod.o seq_map_esmf.o seq_map_mod.o seq_mctext_mod.o seq_rest_mod.o  -L/home/asampath/CESM/caseout/lib/ -latm  -L/home/asampath/CESM/caseout/lib/ -lice  -L/home/asampath/CESM/caseout/lib/ -llnd  -L/home/asampath/CESM/caseout/lib/ -locn  -L/home/asampath/CESM/caseout/lib/ -lrof  -L/home/asampath/CESM/caseout/lib/ -lglc  -L/home/asampath/CESM/caseout/lib/ -lwav -L/home/asampath/CESM/caseout/lib -lcsm_share  -L/home/asampath/CESM/caseout/mct/mct -lmct -L/home/asampath/CESM/caseout/mct/mpeu -lmpeu -L/home/asampath/CESM/caseout/pio -lpio -lgptl -L/home/asampath/netcdfall3/lib -lnetcdff -L/home/asampath/netcdfall3/lib -lnetcdf -lnetcdf -L/opt/intel/impi/5.0.3.048/intel64/lib -lmpi  
 

jedwards

CSEG and Liaisons
Staff member
Either the gptl library build failed or the cesm link step couldn't find it.   Looking at the link line it looks like you are missing the path to gptl mpiifort -o /home/asampath/CESM/caseout/cesm.exe ccsm_comp_mod.o ccsm_driver.o mrg_mod.o seq_avdata_mod.o seq_diag_mct.o seq_domain_mct.o seq_flux_mct.o seq_frac_mct.o seq_hist_mod.o seq_map_esmf.o seq_map_mod.o seq_mctext_mod.o seq_rest_mod.o  -L/home/asampath/CESM/caseout/lib/ -latm  -L/home/asampath/CESM/caseout/lib/ -lice  -L/home/asampath/CESM/caseout/lib/ -llnd  -L/home/asampath/CESM/caseout/lib/ -locn  -L/home/asampath/CESM/caseout/lib/ -lrof  -L/home/asampath/CESM/caseout/lib/ -lglc  -L/home/asampath/CESM/caseout/lib/ -lwav -L/home/asampath/CESM/caseout/lib -lcsm_share  -L/home/asampath/CESM/caseout/mct/mct -lmct -L/home/asampath/CESM/caseout/mct/mpeu -lmpeu -L/home/asampath/CESM/caseout/pio -lpio -lgptl -L/home/asampath/netcdfall3/lib -lnetcdff -L/home/asampath/netcdfall3/lib -lnetcdf -lnetcdf -L/opt/intel/impi/5.0.3.048/intel64/lib -lmpi  
 

jedwards

CSEG and Liaisons
Staff member
Either the gptl library build failed or the cesm link step couldn't find it.   Looking at the link line it looks like you are missing the path to gptl mpiifort -o /home/asampath/CESM/caseout/cesm.exe ccsm_comp_mod.o ccsm_driver.o mrg_mod.o seq_avdata_mod.o seq_diag_mct.o seq_domain_mct.o seq_flux_mct.o seq_frac_mct.o seq_hist_mod.o seq_map_esmf.o seq_map_mod.o seq_mctext_mod.o seq_rest_mod.o  -L/home/asampath/CESM/caseout/lib/ -latm  -L/home/asampath/CESM/caseout/lib/ -lice  -L/home/asampath/CESM/caseout/lib/ -llnd  -L/home/asampath/CESM/caseout/lib/ -locn  -L/home/asampath/CESM/caseout/lib/ -lrof  -L/home/asampath/CESM/caseout/lib/ -lglc  -L/home/asampath/CESM/caseout/lib/ -lwav -L/home/asampath/CESM/caseout/lib -lcsm_share  -L/home/asampath/CESM/caseout/mct/mct -lmct -L/home/asampath/CESM/caseout/mct/mpeu -lmpeu -L/home/asampath/CESM/caseout/pio -lpio -lgptl -L/home/asampath/netcdfall3/lib -lnetcdff -L/home/asampath/netcdfall3/lib -lnetcdf -lnetcdf -L/opt/intel/impi/5.0.3.048/intel64/lib -lmpi  
 

jedwards

CSEG and Liaisons
Staff member
I don't think that there is anything wrong with your mct build - the problem is in the timing library build.   
 

jedwards

CSEG and Liaisons
Staff member
I don't think that there is anything wrong with your mct build - the problem is in the timing library build.   
 

jedwards

CSEG and Liaisons
Staff member
I don't think that there is anything wrong with your mct build - the problem is in the timing library build.   
 

jedwards

CSEG and Liaisons
Staff member
I don't think that there is anything wrong with your mct build - the problem is in the timing library build.   
 

jedwards

CSEG and Liaisons
Staff member
Is this a different build with the same error?    I ask because the last build you showed me was linking libraries in /home/asampath/CESM/caseout/lib and this one has them in /home/asampath/CESM/cesm1_2_0/scripts/mycase_T31_IRCP85CN/bld/libIn either case verify that libgptl.a is there and that the link step is finding this library.
 

jedwards

CSEG and Liaisons
Staff member
Is this a different build with the same error?    I ask because the last build you showed me was linking libraries in /home/asampath/CESM/caseout/lib and this one has them in /home/asampath/CESM/cesm1_2_0/scripts/mycase_T31_IRCP85CN/bld/libIn either case verify that libgptl.a is there and that the link step is finding this library.
 

jedwards

CSEG and Liaisons
Staff member
Is this a different build with the same error?    I ask because the last build you showed me was linking libraries in /home/asampath/CESM/caseout/lib and this one has them in /home/asampath/CESM/cesm1_2_0/scripts/mycase_T31_IRCP85CN/bld/libIn either case verify that libgptl.a is there and that the link step is finding this library.
 
Top