|
From: Patrick D. <pd...@gm...> - 2022-12-06 15:49:36
|
Thank for the feedback,
Of course not,
There is an else
but the issue is with the if !
if (flag_satur==1) {
$EXT_CEN << EOD
0.0 1e10 1e-13
0.0 1e10 1
EOD
$EXT_p1 << EOD
5 1e10 1e-13
5 1e10 1
EOD
$EXT_m1 << EOD
-5 1e10 1e-13
-5 1e10 1
EOD
}
else {
# For Linear absorption
$EXT_CEN << EOD
0.0 1e4 1e-11
0.0 1e4 1
EOD
$EXT_p1 << EOD
5 1e4 1e-11
5 1e4 1
EOD
$EXT_m1 << EOD
-5 1e4 1e-11
-5 1e4 1
EOD
}
===========================================================================
Patrick DUPRÉ | | email: pd...@gm...
Laboratoire interdisciplinaire Carnot de Bourgogne
9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
Tel: +33 (0)380395988 | | Room# D114A
===========================================================================
> Sent: Tuesday, December 06, 2022 at 4:27 PM
> From: "theozh" <th...@gm...>
> To: gnu...@li...
> Subject: Re: [Gnuplot-info] invalid context
>
> What is the larger context of your script snippet?
>
> What should happen if flag_satur!=0 ?
> Then $EXT_CEN should become (or stay) undefined or become something else?
>
> > Hello,
> >
> > It seems that I cannot do this
> > if (flag_satur==1) {
> > $EXT_CEN << EOD
> > 0.0 1e10 1e-13
> > 0.0 1e10 1
> > EOD
> > }
> >
>
>
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|