CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Phoenics (http://www.cfd-online.com/Forums/phoenics/)
-   -   if(indvar.eq.16) not working in Group 19 (http://www.cfd-online.com/Forums/phoenics/51885-if-indvar-eq-16-not-working-group-19-a.html)

Rajiv Shekhar April 11, 2005 08:07

if(indvar.eq.16) not working in Group 19
 
I am solving for two variables C1 and C3. The conditional statement "If(indvar.eq.16)then.."in group 19 is not executed. This used to work well in earlier versions of PHOENICS.

Rami April 11, 2005 09:17

Re: if(indvar.eq.16) not working in Group 19
 
Rajiv,

I don't know the reason for that - maybe the variable order was changed. A safer programming would be to use the variable name, e.g.,

l0vc = l0f( lbname('VCRT') )

or

if(indvar.eq.lbname('C1')) then

I hope this helps.

Mick Hughes April 12, 2005 12:19

Re: if(indvar.eq.16) not working in Group 19
 
or perhaps you have acidentally put your code after the RETURN

Niclo April 13, 2005 11:35

Re: if(indvar.eq.16) not working in Group 19
 
I think you should better paste your code first. that will be easy to find bug.


All times are GMT -4. The time now is 18:16.