[1D] Remove redundant Domain1D::setGrid function

This is a duplicate of Domain1D::setupGrid.
This commit is contained in:
Ray Speth 2014-01-06 18:46:09 +00:00
parent 2653c0a16b
commit dede8dcd42
2 changed files with 0 additions and 11 deletions

View file

@ -576,8 +576,6 @@ public:
//! called to set up initial grid, and after grid refinement
virtual void setupGrid(size_t n, const doublereal* z);
void setGrid(size_t n, const doublereal* z);
/**
* Writes some or all initial solution values into the global
* solution array, beginning at the location pointed to by

View file

@ -429,13 +429,4 @@ void OneDim::save(const std::string& fname, std::string id,
writelog("Solution saved to file "+fname+" as solution "+id+".\n", loglevel);
}
void Domain1D::setGrid(size_t n, const doublereal* z)
{
m_z.resize(n);
m_points = n;
for (size_t j = 0; j < m_points; j++) {
m_z[j] = z[j];
}
}
}