A possible error in the code.

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
aearamos
Posts: 11
Joined: Fri Nov 12, 2010 7:22 pm
Location: Texas A&M University

A possible error in the code.

#1 Unread post by aearamos »

I came across an error when compiling my build.bash and using the #define ANA_M2CLIMA option.

The last line of 'trunk/ROMS/Functionals/ana_m2clima.h', before CLIMA(ng) %vbarclm), should be an '&' instead of a '%'. I got it fixed after the change.

Code: Select all

#ifdef DISTRIBUTE
        CALL mp_exchange2d (ng, tile, model, 2,                         &
     &                      LBi, UBi, LBj, UBj,                         &
     &                      NghostPoints,                               &
     &                      EWperiodic(ng), NSperiodic(ng),             &
     &                      CLIMA(ng) % ubarclm,                        &
     %                      CLIMA(ng) % vbarclm)
#endif
So, the right code should be:

Code: Select all

#ifdef DISTRIBUTE
        CALL mp_exchange2d (ng, tile, model, 2,                         &
     &                      LBi, UBi, LBj, UBj,                         &
     &                      NghostPoints,                               &
     &                      EWperiodic(ng), NSperiodic(ng),             &
     &                      CLIMA(ng) % ubarclm,                        &
     &                      CLIMA(ng) % vbarclm)
#endif
Please let me know if I'm wrong.

Arthur Ramos

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

Re: A possible error in the code.

#2 Unread post by kate »

I believe you are right, thanks!

Post Reply