Meaning of 'BOUNDARY(ng)%'

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
User avatar
susonic
Posts: 168
Joined: Tue Aug 21, 2007 5:44 pm
Location: UST21 / Korea
Contact:

Meaning of 'BOUNDARY(ng)%'

#1 Unread post by susonic »

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: 4088
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Meaning of 'BOUNDARY(ng)%'

#2 Unread post by kate »

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: 168
Joined: Tue Aug 21, 2007 5:44 pm
Location: UST21 / Korea
Contact:

Re: Meaning of 'BOUNDARY(ng)%'

#3 Unread post by susonic »

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

User avatar
susonic
Posts: 168
Joined: Tue Aug 21, 2007 5:44 pm
Location: UST21 / Korea
Contact:

Re: Meaning of 'BOUNDARY(ng)%'

#4 Unread post by susonic »

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: 4088
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Meaning of 'BOUNDARY(ng)%'

#5 Unread post by kate »

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