Nesting Issue at Compile

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
bhayward
Posts: 8
Joined: Thu Aug 31, 2023 3:51 pm
Location: University of Maine

Nesting Issue at Compile

#1 Unread post by bhayward »

Hello,

I'm still working on making sure I've updated to version 4.2, and am working on getting nesting working in the dogbone test case. When I try to compile, I get the following error.

Code: Select all


post_initial.f90(70): error #6404: This name does not have a type, and must have an explicit type.   [NGETD]
        CALL nesting (ng, model, ngetD)
---------------------------------^
compilation aborted for post_initial.f90 (code 1)
make: *** [/home/bhayward/roms_project/dogbone5/Refined/Build_romsO/post_initial.o] Error 1

It looks like ngetD is defined in mod_nesting.F, and that it's not getting defined before getting to this line? The version of ROMS I was using before updating did not have this line, which may be a hint I should update more frequently. Putting 'USE mod_nesting' before the function gives a different error. Removing the line allows the script to compile, but the model blows up when run, I assume because the donor grid contact points were not assigned correctly.

After modifying post_inital.F, I reinstalled ROMS and the test cases to confirm I still get the original error, and I do. I've attached my build script, which is the only file I've modified after reinstalling.

Thank you for your time.

-Ben
Attachments
build_roms.sh
(15.65 KiB) Downloaded 219 times

bhayward
Posts: 8
Joined: Thu Aug 31, 2023 3:51 pm
Location: University of Maine

Re: Nesting Issue at Compile

#2 Unread post by bhayward »

Hello,

I've gotten it working. The 'fix' was fairly clearly stated; I just had to define NestedGrids in the build script.

I don't know how old the version of ROMS I was using before is, but having CPP options in build script is new to me. I think I was looking to put the NestedGrids in the makefile or input file, which is what got me confused (since it is already in the input file). The input file doesn't get used for the compile though, so that not working does make sense to me.

For newer users who have this issue and stumble upon this thread...

In the build script you use (I use build_roms.sh) be sure to include the line:

Code: Select all

 export      NestedGrids 2

Post Reply