ImageMesh::ImageMesh(const InputParameters & parameters) : GeneratedMesh(parameters), _scale_to_one(getParam<bool>("scale_to_one")), _cells_per_pixel(getParam<Real>("cells_per_pixel")) { // Set up the parameters associated with file ranges (this needs to be moved to validParams, if possible) int status = parseFileRange(_app.getInputParameterWarehouse().getInputParameters(name())); // Failure is not an option if (status != 0) mooseError(getFileRangeErrorMessage(status)); }
ImageMesh::ImageMesh(const std::string & name, InputParameters parameters) : GeneratedMesh(name, parameters), _scale_to_one(getParam<bool>("scale_to_one")), _cells_per_pixel(getParam<Real>("cells_per_pixel")) { // Set up the parameters associated with file ranges int status = parseFileRange(_pars); // Failure is not an option if (status != 0) mooseError(getFileRangeErrorMessage(status)); }