Giter VIP home page Giter VIP logo

Comments (4)

Zhxdhhu avatar Zhxdhhu commented on July 18, 2024

Hi Hongrui, not sure if the parallel computation is the cause. But please try by commenting out the parallel codes block (line 49-54; "&" in line 46; "wait" in line 64).

from cama-flood_v4.

Hanki-hs avatar Hanki-hs commented on July 18, 2024

Hi ,
Thanks for your answer ,and I get an error when step of regional map . First, I followed the steps in the manual to edit the script s01-regional_map.sh and specify the domain of regional maps. But it don't generate input matrix like inpmat_test-1deg.bin and diminfo_test-1deg.txt. Then I found that there is only one newly generated file location.txt in the folder (region_15min/1min/), but the txt file location.txt is 0 bytes.
Then, the error show forrtl: severe (37): inconsistent record length, unit 21 , file and not date: 1min . So I think the reason maybe that generate_input.F90 could not generate input matrix file. can anyone tell how to get rid of from this error?

Regards,
HongRui

from cama-flood_v4.

Zhxdhhu avatar Zhxdhhu commented on July 18, 2024

Hi after exciting s01-regional_map.sh, the new folder (e.g. 1min) will be generated and the location.txt file should be generated as well. This file is small and only has three line in the default setting
1 narea
iarea carea west east south north nx ny csize
1 1min -130.000 -60.000 20.000 55.000 4200 2100 0.016666666666667

Please check.

from cama-flood_v4.

Hanki-hs avatar Hanki-hs commented on July 18, 2024

Hi,
After trying several times, the file is still not generated. Because it keeps showing compilation errors, I think maybe there is something wrong with the installation of my compilation environment. So please help me to check what is wrong with my system environment installation?

the system

  • Operating system/version:

Ubuntu-20.04.4

  • Computer
    VMware Workstation 16 Pro

Details of the system environment

  1. ifort
$ ifort -v            
ifort version 2021.5.0
  1. gfortran
$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:hsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~20.04.1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
  1. netCDF
$ nc-config --all

This netCDF 4.8.1 has been built with the following features: 

  --cc            -> gcc
  --cflags        -> -I/usr/local/netcdf4-needed/include -I/usr/local/netcdf4-needed/include
  --libs          -> -L/usr/local/netcdf4-needed/lib -lnetcdf
  --static        -> -lhdf5_hl -lhdf5 -lm -ldl -lz 

  --has-c++       -> no
  --cxx           -> 

  --has-c++4      -> no
  --cxx4          -> 

  --has-fortran   -> yes
  --fc            -> gfortran
  --fflags        -> -I/usr/local/netcdf4-needed/include -I/usr/local/netcdf4-needed/include
  --flibs         -> -L/usr/local/netcdf4-needed/lib -lnetcdff
  --has-f90       -> 
  --has-f03       -> yes

  --has-dap       -> no
  --has-dap2      -> no
  --has-dap4      -> no
  --has-nc2       -> yes
  --has-nc4       -> yes
  --has-hdf5      -> yes
  --has-hdf4      -> no
  --has-logging   -> no
  --has-pnetcdf   -> no
  --has-szlib     -> no
  --has-cdf5      -> yes
  --has-parallel4 -> no
  --has-parallel  -> no
  --has-nczarr    -> yes

  --prefix        -> /usr/local/netcdf4-needed
  --includedir    -> /usr/local/netcdf4-needed/include
  --libdir        -> /usr/local/netcdf4-needed/lib
  --version       -> netCDF 4.8.1
  1. another
$ which cmake pkg-config make gcc g++
/usr/bin/cmake
/usr/bin/pkg-config
/usr/bin/make
/usr/bin/gcc
/usr/bin/g++

When I change the location of NetCDF library in Mkinclude_linux_ifort and execute compile.sh , the system still shows that the compilation failed. But it succeed when I using Mkinclude_linux_gfortran to compile. How can I successfully use Mkinclude_linux_ifort to compile?

from cama-flood_v4.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.