Page 1 of 1

metgrid problem with UEMS Version 19.3.1

Posted: Thu Mar 21, 2019 10:58 am
by rob
Hi,

I've made a fresh install of UEMS Version 19.3.1 and I get this error when running ems_autorun in forecast mode
(--date 20190320 --dset gfsp25pt --cycle 18 --length 78 --domains 2,3 --debug metgrid)

Code: Select all

       IV.  AutoPrep: Horizontal interpolation of intermediate files to the computational domain

              *  Calculating mean surface temperatures for missing water values - Success

              *  Interpolating fields to the computational domain (0 cores) -
           !  While perusing the log files, I found the following:

              Found in prep_metgrid2.log - Error!
Steps I., II. and III. work. Step IV says "0 cores".
The log files do not provide any information.

Any hints?

Thanks
Roberto

Re: metgrid problem with UEMS Version 19.3.1

Posted: Thu Mar 21, 2019 1:36 pm
by rob
I'v found the problem.

At line 341 of file strc/Uprep/Pinterp.pm

Code: Select all

my $maxcpus = min ($sysinfo{total_cores}-1,$conf{ncpus});  # Do not use all the CPUs on system
should be:

Code: Select all

my $maxcpus = min ($sysinfo{total_cores}-1,$conf{ncpus}) || 1;  # Do not use all the CPUs on system, if possible
In fact, I have one core since I'm testing with an AWS t3.large instance, and the original code gives my $maxcpus = 0

lscpu for t3.large:

Code: Select all

Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    2
Core(s) per socket:    1
Socket(s):             1
NUMA node(s):          1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 85
Model name:            Intel(R) Xeon(R) Platinum 8175M CPU @ 2.50GHz

etc..