[SOLVED] Problème calcul with cs_user_extra_operation

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Problème calcul with cs_user_extra_operation

Post by Yvan Fournier »

Hello,

Can you post the whole code instead of just small pieces of it ?

Regards,

Yvan
pleblanc86
Posts: 22
Joined: Wed Dec 11, 2013 6:15 pm

Re: Problème calcul with cs_user_extra_operation

Post by pleblanc86 »

Hello Yvan,

Please find attached the cs_user_extra_operations.f90 for a simple cases without computation of criteria.

We modified the code and program a ionic conduction module (Electrical Double Layer Effect), the scalar ipproc(iqelec) is calculated in this module and represent the space charge density at the interface solid/liquid.

icell3 is a color of only one cell close to interface (in medium liquid).

So my question is -> why when I am working with only one procs, I obtain 1.d0 in residu.dat file and 0.d0 with multi procs run ?

Thank you for your help
Regards
Paul
Attachments
cs_user_extra_operations.f90
Cas test simple
(6.38 KiB) Downloaded 464 times
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Problème calcul with cs_user_extra_operation

Post by Yvan Fournier »

Hello,

Why did you remove the call to parsom ? In parallel, you need to call

parsom(residu(ntcabs))

After the loop on selected cells, and before writing the output.

Regards,

Yvan
pleblanc86
Posts: 22
Joined: Wed Dec 11, 2013 6:15 pm

Re: Problème calcul with cs_user_extra_operation

Post by pleblanc86 »

Hello,

Thank you very much, does it works now.
I placed the line

Code: Select all

parsom(residu(ntcabs))
where you suggested

Thank you again
Ragards

Paul
Post Reply