Bulk calculation

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Muhsin
Posts: 25
Joined: Mon May 18, 2015 5:48 pm

Bulk calculation

Post by Muhsin »

Hi all,

I'm trying to calculate the bulk temperature and bulk velocity to the axial direction. I ran code saturne in parallel with 4 processor. I found that my calculation is stopped after 'call sum of parameters...' is written and suppose the problem occured when it's calling parsom (as you could see in the subroutine and listing attached).

Code: Select all

if (irangp.ge.0) then
write (nfecra,*) 'call sum of parameters...'
call parsom(velave)
write (nfecra,*) 'velave called...'
call parsom(tempave)
write (nfecra,*) 'tempave called...'
call parsom(totvol)
write (nfecra,*) 'totvol called...'
endif
I wonder what exactly is wrong in the script. Would anyone care to help and show me the problem caused. Thank you
Attachments
listing.tar.gz
(9.68 KiB) Downloaded 236 times
cs_user_extra_operations_bulkcalc_UT.f90.tar.gz
(2 KiB) Downloaded 251 times
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Bulk calculation

Post by Yvan Fournier »

Hello,

There is one error in your code (which I did not see immediately):

parsom needs to be called on all ranks, but you call it inside a test on (nlelt.gt.0), which depends on the mesh and partition.

Try simply removing the test on "ilelt.gt.0" (always run the code inside): when ilelt is equal to 0; the loop on ilelt will not execute, so the code should work fine (i.e. the test on "ilelt.gt.0" is redundant and breaks parallelism).

Regards,

Yvan
Post Reply