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 Unread post by brest »

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: 1204
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: compling build.bash

#2 Unread post by jcwarner »

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 Unread post by brest »

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