From 00a89764603159a9727b24f1899bd6f25b9c7239 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (laptop)" <j.wuttke@fz-juelich.de> Date: Thu, 30 Apr 2009 17:52:42 +0200 Subject: [PATCH] minor preparatives --- src/edif.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/edif.cpp b/src/edif.cpp index e8f32e8b..c663595a 100644 --- a/src/edif.cpp +++ b/src/edif.cpp @@ -1130,7 +1130,7 @@ void NEdif::Plot( bool add ) e->P()->xco.str(), e->P()->yco.str(), "curve file "+strg(k)+" scan "+strg(j) ); } else if ( fc ) { - double arg, val; + double x, y; int npts = 100; double delta0 = 1.0/(npts-1.e-10); double delta = delta0; @@ -1139,10 +1139,11 @@ void NEdif::Plot( bool add ) double pos = 0; bool was_inside = false; bool is_inside; + double was_x, was_y; while(1){ - arg = NPlot::X.R.plotcoord2value( NPlot::X.log, pos ); - val = fc->T->tree_curve_val_sca( arg, k, j ); - is_inside = NPlot::Y.R.contained( val ); + x = NPlot::X.R.plotcoord2value( NPlot::X.log, pos ); + y = fc->T->tree_curve_val_sca( x, k, j ); + is_inside = NPlot::Y.R.contained( y ); if( !is_inside ){ if( was_inside ){ } @@ -1154,7 +1155,7 @@ void NEdif::Plot( bool add ) *s = S; s->Clear(); } - s->push_back( arg, val ); + s->push_back( x, y ); incr_pos: was_inside = is_inside; if( pos>= 1 ) -- GitLab