compling build.bash

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
brest
Posts: 5
Joined: Mon Sep 24, 2018 7:40 pm
Location: INIOAS

compling build.bash

#1 Post by brest » Tue Nov 06, 2018 5:53 am

Hello everyone,

I am trying to compile Build.Bash file for upwelling, all seem to be Okay but the last lines appear to be wrong and show some errors:


cd /home/maziar/ROMSmaziar/Projects_Maziar/upwelling/Build; /home/maziar/Downloads/q/mpich-3.0.4/bin/mpif90 -c -frepack-arrays -g -fbounds-check -fbacktrace -finit-real=nan -ffpe-trap=invalid,zero,overflow -ffree-form -ffree-line-length-none analytical.f90
analytical.f90:587.22:

rdrag(i,j)=???
1
Error: Invalid character in name at (1)
analytical.f90:825.14:

ana_grid.h: no values provided for Xsize, Esize, depth, f0, beta.
1
Error: 'ana_grid' at (1) is not a variable
analytical.f90:2124.14:

ana_vmix.h: no values provided for Akv.
1
Error: 'ana_vmix' at (1) is not a variable
analytical.f90:2143.14:

ana_vmix.h: no values provided for Akt.
1
Error: 'ana_vmix' at (1) is not a variable
make: *** [/home/maziar/ROMSmaziar/Projects_Maziar/upwelling/Build/analytical.o] Error 1
[maziar@localhost upwelling]$

would you please kindly let me know what goes wrong?
Kind regards
Maziar

jcwarner
Posts: 816
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: compling build.bash

#2 Post by jcwarner » Tue Nov 06, 2018 1:19 pm

the compilation is using some ana* files (looks like ana_grid.h and ana_vmix.h) I suggest you:
- copy those 2 files from ROMS/Functionals and place them in the directory with your project.h file
- edit those files and provide the necessary information (they have examples in them).
- make sure your build.bash points to those ana files with the line:
export MY_ANALYTICAL_DIR=${MY_PROJECT_DIR}/Projects/....path to those files
-recompile

-john

brest
Posts: 5
Joined: Mon Sep 24, 2018 7:40 pm
Location: INIOAS

Re: compling build.bash

#3 Post by brest » Mon Nov 12, 2018 9:06 am

Hi dear John,

Many thanks for the reply.
With the help of you and a friend, now it works.
Great thanks


jcwarner wrote:the compilation is using some ana* files (looks like ana_grid.h and ana_vmix.h) I suggest you:
- copy those 2 files from ROMS/Functionals and place them in the directory with your project.h file
- edit those files and provide the necessary information (they have examples in them).
- make sure your build.bash points to those ana files with the line:
export MY_ANALYTICAL_DIR=${MY_PROJECT_DIR}/Projects/....path to those files
-recompile

-john

Post Reply