Re: invalid context

Patrick Dupre <[email protected]> Tue, 6 Dec 2022 16:49:27 +0100
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <trinity-66c05736-90c5-4143-ba92-6eda4f635b3a-1670341767070@3c-app-mailcom-bs13>
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: [email protected]
 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" <[email protected]>
> To: [email protected]
> 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
> [email protected]
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>


_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info