Skip to content

Commit 3de7956

Browse files
Merge pull request #17 from OpenSEMBA/alejandro
Compilation and attribute fixes
2 parents 185f9bb + 315c2d9 commit 3de7956

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Additionally needs:
2323
Compile mfem in external/mfem-geg
2424

2525
```shell
26-
cmake -S external/mfem-geg -B mfem-build/rls -DCMAKE_PREFIX_INSTALL=<path-to-mfem-install-dir>
26+
cmake -S external/mfem-geg -B mfem-build/rls -DCMAKE_INSTALL_PREFIX=<path-to-mfem-install-dir>
2727
cmake --build mfem-build/rls --target install --config Release
2828
```
2929

src/ElectrostaticSolver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Array<int> AttrToMarker(const Mesh& mesh, const Array<int>& attrs)
1919
marker = 0;
2020

2121

22-
MFEM_ASSERT(attrs.Max() <= max_attr, "Invalid attribute number present.");
22+
MFEM_ASSERT(attrs.Max() <= maxAttr, "Invalid attribute number present.");
2323

2424
if (attrs.Size() == 1 && attrs[0] == -1)
2525
{
@@ -259,7 +259,7 @@ void ElectrostaticSolver::Solve()
259259
DivEpsGrad, Phi, RHS);
260260

261261
GSSmoother M(DivEpsGrad);
262-
PCG(DivEpsGrad, M, RHS, Phi, opts_.printIterations, 200, 1e-12, 0.0);
262+
PCG(DivEpsGrad, M, RHS, Phi, opts_.printIterations, 500, 1e-12, 0.0);
263263

264264
divEpsGrad_->RecoverFEMSolution(Phi, *rhod_, *phi_);
265265
}

0 commit comments

Comments
 (0)