33#include " Constants.h" // SMALL
44
55Analysis_Spline::Analysis_Spline () :
6- outfile_(0 ),
76 meshsize_(0 ),
87 meshmin_(0.0 ),
98 meshmax_(0.0 ),
@@ -21,7 +20,7 @@ void Analysis_Spline::Help() const {
2120Analysis::RetType Analysis_Spline::Setup (ArgList& analyzeArgs, AnalysisSetup& setup, int debugIn)
2221{
2322 std::string setname = analyzeArgs.GetStringKey (" name" );
24- outfile_ = setup.DFL ().AddDataFile (analyzeArgs.GetStringKey (" out" ), analyzeArgs);
23+ DataFile* outfile = setup.DFL ().AddDataFile (analyzeArgs.GetStringKey (" out" ), analyzeArgs);
2524 meshsize_ = analyzeArgs.getKeyInt (" meshsize" , 0 );
2625 meshfactor_ = -1.0 ;
2726 if (meshsize_ < 3 ) {
@@ -66,7 +65,7 @@ Analysis::RetType Analysis_Spline::Setup(ArgList& analyzeArgs, AnalysisSetup& se
6665 ds->SetLegend ( " Spline(" + (*dsIn)->Meta ().Legend () + " )" );
6766 // TODO: Set individually based on input_dsets_
6867 ds->SetDim (Dimension::X, Xdim);
69- if (outfile_ != 0 ) outfile_ ->AddDataSet ( ds );
68+ if (outfile != 0 ) outfile ->AddDataSet ( ds );
7069 output_dsets_.push_back ( (DataSet_Mesh*)ds );
7170 }
7271
@@ -83,10 +82,10 @@ Analysis::RetType Analysis_Spline::Setup(ArgList& analyzeArgs, AnalysisSetup& se
8382 mprintf (" Mesh max= %f\n " , meshmax_);
8483 else
8584 mprintf (" Mesh max will be input set max.\n " );
86- if (outfile_ != 0 ) {
85+ if (outfile != 0 ) {
8786 if (!setname.empty ())
8887 mprintf (" \t Output set name: %s\n " , setname.c_str ());
89- mprintf (" \t Outfile name: %s\n " , outfile_ ->DataFilename ().base ());
88+ mprintf (" \t Outfile name: %s\n " , outfile ->DataFilename ().base ());
9089 }
9190 // for (Array1D::const_iterator set = input_dsets_.begin(); set != input_dsets_.end(); ++set)
9291 // mprintf("\t%s\n", (*set)->legend());
0 commit comments