SCECcode / ucvm

UCVM is used to query seismic velocity models for earth properties (Vp, Vs, density) by lat,long, and depth. It can create velocity meshes used in seismic wave propagation simulations. This repo contains the source codes that implement the core UCVM query interface. Python-based plotting modules, based on matplotlib, are now hosted in a separate github repo called SCECcode/ucvm_plotting.
https://www.scec.org/research/ucvm
BSD 3-Clause "New" or "Revised" License
19 stars 3 forks source link

UCVM giving error in compilation #41

Open chittu11 opened 2 years ago

chittu11 commented 2 years ago

Hi Team

We are trying to install UCVM In our Centos 7 HPC environment and its giving the below error at compilation. Can you please suggest what needs to be done?

https://github.com/sceccode/ucvm/wiki/How-to-Guides

We have required gfortran/gcc and python modules loaded.

Error:

 for(int i=0; i<UCVM_MAX_MAPS; i++) {
    ^
ucvm_map.c: In function ‘get_map_by_label’:
ucvm_map.c:43:4: error: ‘for’ loop initial declarations are only allowed in C99 mode
    for(int i=0; i<UCVM_MAX_MAPS; i++) {
    ^
ucvm_map.c: In function ‘_get_map_next’:
ucvm_map.c:53:4: error: ‘for’ loop initial declarations are only allowed in C99 mode
    for(int i=0; i<UCVM_MAX_MAPS; i++) {
    ^
make[1]: *** [ucvm_map.o] Error 1
make[1]: Leaving directory `/root/ucvm/src/ucvm'
make: *** [all-recursive] Error 1

ERROR:
An error occurred while trying to setup UCVM. Specifically, the error was:

Error executing command.

At step: ['make']

Thank you CS