Replace comment with "ifdef DISABLE_OUTPUT"
This commit is contained in:
@@ -35,7 +35,9 @@
|
||||
#include <opm/core/grid.h>
|
||||
#include <opm/core/grid/GridManager.hpp>
|
||||
// 17.03.2016 Temporarily removed while moving functionality to opm-output
|
||||
//#include <opm/core/io/vtk/writeVtkData.hpp>
|
||||
#ifdef DISABLE_OUTPUT
|
||||
#include <opm/core/io/vtk/writeVtkData.hpp>
|
||||
#endif
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <vector>
|
||||
@@ -188,13 +190,15 @@ try
|
||||
/// \snippet tutorial2.cpp write output
|
||||
/// \internal [write output]
|
||||
// 17.03.2016 Temporarily removed while moving functionality to opm-output
|
||||
// std::ofstream vtkfile("tutorial2.vtu");
|
||||
// Opm::DataMap dm;
|
||||
// dm["pressure"] = &state.pressure();
|
||||
// std::vector<double> cell_velocity;
|
||||
// Opm::estimateCellVelocity(*grid.c_grid(), state.faceflux(), cell_velocity);
|
||||
// dm["velocity"] = &cell_velocity;
|
||||
// Opm::writeVtkData(*grid.c_grid(), dm, vtkfile);
|
||||
#ifdef DISABLE_OUTPUT
|
||||
std::ofstream vtkfile("tutorial2.vtu");
|
||||
Opm::DataMap dm;
|
||||
dm["pressure"] = &state.pressure();
|
||||
std::vector<double> cell_velocity;
|
||||
Opm::estimateCellVelocity(*grid.c_grid(), state.faceflux(), cell_velocity);
|
||||
dm["velocity"] = &cell_velocity;
|
||||
Opm::writeVtkData(*grid.c_grid(), dm, vtkfile);
|
||||
#endif
|
||||
/// \internal [write output]
|
||||
/// \endinternal
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user