Skip to content
Snippets Groups Projects
Commit 6bfe2e60 authored by Nicolas Marsic's avatar Nicolas Marsic
Browse files

Writer

parent f2dedb9e
No related branches found
No related tags found
No related merge requests found
...@@ -13,21 +13,25 @@ ...@@ -13,21 +13,25 @@
#include "HexEdgeBasis.h" #include "HexEdgeBasis.h"
#include "PlotBasis.h" #include "PlotBasis.h"
#include "WriterMsh.h"
using namespace std; using namespace std;
int basisTest(int argc, char** argv){ int main(int argc, char** argv){
// Init Gmsh // // Init Gmsh //
GmshInitialize(argc, argv); GmshInitialize(argc, argv);
// Get Mesh // // Get Mesh //
Mesh msh(argv[1]); Mesh msh(argv[1]);
// Writer for .msh
WriterMsh writer(msh.getGroup(2).getAll());
// Plot Basis // // Plot Basis //
TriEdgeBasis b(5); TriEdgeBasis b(5);
PlotBasis plot(msh.getGroup(2), b); PlotBasis plot(msh.getGroup(2), b, writer);
plot.write("basis"); plot.plot("basis");
// Stop Gmsh // // Stop Gmsh //
GmshFinalize(); GmshFinalize();
......
...@@ -10,8 +10,8 @@ set(SRC ...@@ -10,8 +10,8 @@ set(SRC
Basis.cpp Basis.cpp
BasisScalar.cpp BasisScalar.cpp
BasisVector.cpp BasisVector.cpp
BasisTest.cpp
BasisGenerator.cpp BasisGenerator.cpp
BasisTest.cpp
QuadNodeBasis.cpp QuadNodeBasis.cpp
QuadEdgeBasis.cpp QuadEdgeBasis.cpp
......
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