Skip to content

Commit

Permalink
Merge pull request OpenSEMBA#11 from OpenSEMBA/luis
Browse files Browse the repository at this point in the history
SMA does not work. Needs reviewing.
  • Loading branch information
AlejandroMunozManterola authored Sep 1, 2022
2 parents e5ed921 + b644ac4 commit 0bc5938
Show file tree
Hide file tree
Showing 15 changed files with 435 additions and 713 deletions.
3 changes: 2 additions & 1 deletion src/maxwell/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ include_directories(${MFEM_INCLUDE_DIRS})
add_library(maxwell STATIC
"SolverOptions.h"
"Solver.h" "Solver.cpp"
"FiniteElementEvolution.h" "FiniteElementEvolution.cpp"
"mfemExtension/BilinearIntegrators.h" "mfemExtension/BilinearIntegrators.cpp"
"Types.h"
"Material.h" "Material.cpp"
Expand All @@ -18,6 +17,8 @@ add_library(maxwell STATIC
"ProbesManager.h" "ProbesManager.cpp"
"SourcesManager.h" "SourcesManager.cpp"
"Fields.h" "Fields.cpp"
"MaxwellEvolution.h" "MaxwellEvolution.cpp"

)

target_link_libraries(maxwell mfem)
6 changes: 3 additions & 3 deletions src/maxwell/Fields.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#include "Fields.h"

#include "FiniteElementEvolution.h"
#include "MaxwellEvolution.h"

namespace maxwell {

using namespace mfem;

Fields::Fields(mfem::FiniteElementSpace& fes) :
allDOFs{
FiniteElementEvolution::numberOfFieldComponents *
FiniteElementEvolution::numberOfMaxDimensions *
MaxwellEvolution::numberOfFieldComponents *
MaxwellEvolution::numberOfMaxDimensions *
fes.GetNDofs()
}
{
Expand Down
2 changes: 2 additions & 0 deletions src/maxwell/Fields.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ class Fields {

std::array<mfem::GridFunction, 3> E, H;
mfem::Vector allDOFs;

double getNorml2() const { return allDOFs.Norml2(); }
};
}
Loading

0 comments on commit 0bc5938

Please sign in to comment.