Meaning of 'BOUNDARY(ng)%'

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
User avatar
susonic
Posts: 160
Joined: Tue Aug 21, 2007 5:44 pm
Location: Jeju National University
Contact:

Meaning of 'BOUNDARY(ng)%'

#1 Post by susonic » Tue Sep 23, 2008 2:34 pm

Hi all
I've been wondering that what does 'BOUNDARY(ng)%' mean?
Would you let me know that each of 'BOUNDARY' '(ng)' '%' meaning?
BOUNDARY(ng)%ubar_west(j)=my_flux/my_area
BOUNDARY(ng)%vbar_west(j)=0.0_r8
I appreciate any of your lessons.

Best,
-Peter

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

Re: Meaning of 'BOUNDARY(ng)%'

#2 Post by kate » Tue Sep 23, 2008 4:49 pm

This is standard Fortran 90 syntax for accessing user-defined types. BOUNDARY is an array of an object, where BOUNDARY(ng) is referencing just one element of that array. The % access an element within that object, say zeta_west. So the whole BOUNDARY(ng) contains boundary conditions for all sides, all variables for one grid.

User avatar
susonic
Posts: 160
Joined: Tue Aug 21, 2007 5:44 pm
Location: Jeju National University
Contact:

Re: Meaning of 'BOUNDARY(ng)%'

#3 Post by susonic » Fri Sep 26, 2008 2:07 pm

Thank you Kate. I really appreciate your reply.
Have a good weekend. :D

User avatar
susonic
Posts: 160
Joined: Tue Aug 21, 2007 5:44 pm
Location: Jeju National University
Contact:

Re: Meaning of 'BOUNDARY(ng)%'

#4 Post by susonic » Tue Sep 30, 2008 5:05 pm

Hi Kate,
I've got one more question to make sure I understood right or not.
So, does 'ng' mean each grid?

Best,
-Peter

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

Re: Meaning of 'BOUNDARY(ng)%'

#5 Post by kate » Tue Sep 30, 2008 5:45 pm

Somewhere else, there is a loop on

Code: Select all

ng=1,Ngrids
so, yes, ng is each grid. The value of Ngrids is now coming from the makefile and gets compiled in.

Post Reply