Skip to content
Snippets Groups Projects
Commit 8921fdaf authored by Oliver Sander's avatar Oliver Sander Committed by sander
Browse files

Disturb the initial iterate directly in the Identity function object

[[Imported from SVN: r9669]]
parent 16671322
No related branches found
No related tags found
No related merge requests found
...@@ -59,6 +59,8 @@ public: ...@@ -59,6 +59,8 @@ public:
y = 0; y = 0;
for (int i=0; i<dim; i++) for (int i=0; i<dim; i++)
y[i] = x[i]; y[i] = x[i];
y[2] = 0.002*std::cos(1e4*x[0]);
} }
}; };
...@@ -265,16 +267,6 @@ int main (int argc, char *argv[]) try ...@@ -265,16 +267,6 @@ int main (int argc, char *argv[]) try
for (size_t i=0; i<x.size(); i++) for (size_t i=0; i<x.size(); i++)
x[i].r = v[i]; x[i].r = v[i];
vIt = gridView.begin<dim>();
for (; vIt!=vEndIt; ++vIt) {
int idx = indexSet.index(*vIt);
x[idx].r[2] = 0.002*std::cos(1e4*vIt->geometry().corner(0)[0]);
// x[idx].q is the identity, set by the default constructor
}
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
// Main homotopy loop // Main homotopy loop
//////////////////////////////////////////////////////// ////////////////////////////////////////////////////////
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment