How to ensure the CPP option I added works?

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
Zeng
Posts: 26
Joined: Mon Sep 19, 2022 1:06 pm
Location: Sun Yat-Sen University

How to ensure the CPP option I added works?

#1 Unread post by Zeng »

Hello, everyone! Wish you all the best!
I added codes to decay the passive tracer in step3d_t.F, as shown in the figure.
1.png
1.png (64.52 KiB) Viewed 19912 times
And I set a cpp option in .h file.
1698063626366.png
1698063626366.png (11.96 KiB) Viewed 19912 times
When I ran the case, the screen displayed as follow:
1698064990729.png
There is no cpp option of TRACER DECAY in the log. I am curious about if the cpp option works? Is there a way to prove that these codes have taken effect?(expcet run the case twice) And can I add the new cpp option through the above method?
Thanks for your attention and looking forward your reply! :mrgreen: :mrgreen: :mrgreen:
Last edited by Zeng on Wed Oct 25, 2023 8:09 am, edited 1 time in total.

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: How to ensure the CPP option I added works?

#2 Unread post by kate »

The place to check is in the build directory. Look at step3d_t.f90 there to see if your conditional code is there.

For the output you were looking at, there is another file that needs to be modified to get that statement added: checkdefs.F

Zeng
Posts: 26
Joined: Mon Sep 19, 2022 1:06 pm
Location: Sun Yat-Sen University

Re: How to ensure the CPP option I added works?

#3 Unread post by Zeng »

Kate, thanks for your prompt reply, it's really helpful. :D :D

Post Reply