Bug in mod_boundary.F

Bug reports, work arounds and fixes

Moderators: arango, robertson

Post Reply
Message
Author
annsp
Posts: 3
Joined: Mon Sep 03, 2007 10:27 pm
Location: Norwegian Meteorological Institute

Bug in mod_boundary.F

#1 Unread post by annsp »

I found a bug in mod_boundary causing segmentation fault when ADJUST_BOUNDARY is defined.
It is only a problem when the southern boundary is closed while the northern boundary is open.
Changing:

Code: Select all

      IF (tl_LBC(isouth,isUbar,ng)%acquire) THEN
        allocate ( BOUNDARY(ng) % tl_ubar_north(LBi:UBi) )
      END IF

to:

Code: Select all

      IF (tl_LBC(inorth,isUbar,ng)%acquire) THEN
        allocate ( BOUNDARY(ng) % tl_ubar_north(LBi:UBi) )
      END IF
fixes the problem.

Ann Kristin

leon
Posts: 78
Joined: Mon Mar 03, 2008 4:14 am

Re: Bug in mod_boundary.F

#2 Unread post by leon »

Yes, you are right. I ran into the same problem too. It's in mod_boundary.F line1100. isouth should be inorth.

Post Reply