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

Error in making domain data

Status
Not open for further replies.

weixinyu

weixinyu
Member
Dear all
After I followed the procedure given on the official website, I got the error as shown in the picture when making domain data, it seems that my machine cannot be recognized, what should I do to deal with this?
Here's how I do it
1, create a new case "syh", define the resolution as 0.1 °
Four points latitude and longitude as 101,40, 105,40, 101,37, 105,37, I enter the variable inside the bashrc as:
export GRIDNAME=syh
export CDATE='240604'
export CENLON=103
export CENLAT=38
export DX=4
export NX=40
export DY=4
export NY=40
. /mknoocnmap.pl -p 38,103 -n syh -dy 4 -ny 40 -dx 4 -nx 40 create case

2. Create map data
Define the bashrc environment variable
export GRIDFILE=/home/u4/Downloads/clm5.0/tools/mkmapgrids/SCRIPgrid_40x40_syh_nomask_c240605.nc
export GRIDFILE=/home/u4/Downloads/clm5.0/tools/mkmapgrids/SCRIPgrid_40x40_syh_noocean_c240605.nc
export MAPFILE=/home/u4/Downloads/clm5.0/tools/mkmapdata/map_40x40_syh_noocean_to_40x40_syh_nomask_aave_da_240605.nc
export CSMDATA=/home/u4/cesm/inputdata/lnd/clm2/mappingdata/grids

Apply the command. /mkmapdata.sh -r $GRIDNAME -f $GRIDFILE -t regional create map file
The previous results were successful
3、Create domain data
./configure --machine myintel --macros-format Makefile --compiler intel
make

A makefile error occurs and I then do ifort -o in the src directory ... /gen_domain gen_domain.o -lnetcdf -lnetcdff
And then it worked.
When I run . /gen_domain -m $MAPFILE -o $OCNDOM -l $ATMDOM
I get (shr_sys_getenv) ERROR: no implementation of getenv for this architecture
(shr_sys_getenv) no implementation of getenv for this machine error

I have two questions, the first is what should I do about my error above?
The second question is, I found that all these data created are from the default clm 4.5 version, but I want to use this version of clm 5.0, is it compatible?
 

Attachments

  • 1719243843267.png
    1719243843267.png
    656.3 KB · Views: 6
  • 1719243858916.png
    1719243858916.png
    566 KB · Views: 6

slevis

Moderator
Staff member
I searched the Forums for "no implementation of getenv" and found someone who seems to have solved it:

Another person posted a different approach:
 
Last edited:

slevis

Moderator
Staff member
I think you will be able to run with clm5.0 using an fsurdat file from clm4.5. Worth trying to find out.
 

mitali

Mitali Gautam
New Member
Hello!
I am experiencing the same error:
(shr_sys_getenv) ERROR: no implementation of getenv for this architecture
(shr_sys_getenv) no implementation of getenv for this machine


Tried adding the OS information in Makefile.
Not sure how else to solve it.
Any leads would be greatly appreciated.

Kind regards,
Mitali Gautam
 
Status
Not open for further replies.
Top