Skip to content
Snippets Groups Projects
Commit 6c924ab8 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

add scaling of the Dirichlet values

[[Imported from SVN: r9856]]
parent 44a4e899
No related branches found
No related tags found
No related merge requests found
......@@ -53,6 +53,7 @@ int main (int argc, char *argv[]) try
const int baseIt = parameterSet.get("baseIt", int(0));
const double tolerance = parameterSet.get("tolerance", double(0));
const double baseTolerance = parameterSet.get("baseTolerance", double(0));
const double scaling = parameterSet.get<double>("scaling");
// read problem settings
std::string gridFile = parameterSet.get<std::string>("gridFile");
......@@ -76,6 +77,8 @@ int main (int argc, char *argv[]) try
dirichletValues[0].resize(grid.size(0, dim));
AmiraMeshReader<int>::readFunction(dirichletValues[0], dvFile);
dirichletValues[0] *= scaling;
for (int i=0; i<numLevels-1; i++)
grid.globalRefine(1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment