This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Omega_h_amr.hpp> | |
#include <Omega_h_array_ops.hpp> | |
#include <Omega_h_build.hpp> | |
#include <Omega_h_file.hpp> | |
#include <Omega_h_for.hpp> | |
#include <Omega_h_map.hpp> | |
#include <Omega_h_print.hpp> | |
template <int dim> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Omega_h_amr.hpp> | |
#include <Omega_h_array_ops.hpp> | |
#include <Omega_h_build.hpp> | |
#include <Omega_h_file.hpp> | |
#include <Omega_h_loop.hpp> | |
#include <Omega_h_map.hpp> | |
template <int dim> | |
double eval_rc(Omega_h::Vector<dim> c); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Omega_h_array_ops.hpp> | |
#include <Omega_h_build.hpp> | |
#include <Omega_h_library.hpp> | |
#include <Omega_h_file.hpp> | |
#include <Omega_h_hypercube.hpp> | |
#include <Omega_h_mark.hpp> | |
#include <Omega_h_mesh.hpp> | |
int main(int argc, char** argv) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <apf.h> | |
#include <apfMesh2.h> | |
#include <apfMDS.h> | |
#include <apfNumbering.h> | |
#include <apfShape.h> | |
#include <gmi_mesh.h> | |
#include <ma.h> | |
#include <PCU.h> | |
#include <pcu_util.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <apf.h> | |
#include <apfMesh2.h> | |
#include <apfMDS.h> | |
#include <apfNumbering.h> | |
#include <apfShape.h> | |
#include <gmi_mesh.h> | |
#include <ma.h> | |
#include <PCU.h> | |
#include <pcu_util.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <apf.h> | |
#include <apfMDS.h> | |
#include <apfMesh2.h> | |
#include <apfNumbering.h> | |
#include <apfShape.h> | |
#include <gmi_mesh.h> | |
#include <ma.h> | |
#include <PCU.h> | |
#include <pcu_util.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct UniformCoarsener : public IdentitySizeField | |
{ | |
UniformCoarsener(Mesh* m): | |
IdentitySizeField(m) | |
{ | |
} | |
bool shouldSplit(Entity*) | |
{ | |
printf("I SHOULD NOT SPLIT!\n"); | |
return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <gmi_mesh.h> | |
#include <apfMDS.h> | |
#include <apfMesh2.h> | |
#include <apf.h> | |
#include <PCU.h> | |
#include <cassert> | |
apf::MeshTag* create_my_tag(apf::Mesh* m) { | |
apf::MeshTag* tag = m->createDoubleTag("my_tag", 1); | |
apf::MeshEntity* vtx; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <apf.h> | |
namespace Dislocation { | |
static apf::Matrix3x3 outer( | |
apf::Vector3 const& a, | |
apf::Vector3 const& b) { | |
apf::Matrix3x3 r; | |
for (int i=0; i < 3; ++i) | |
for (int j=0; j < 3; ++j) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME=lines_in_cube | |
all: $(NAME).vtk | |
$(NAME).geo: $(NAME).cpp | |
mpicxx -std=c++11 $(NAME).cpp -o $(NAME) -I${GMODEL_DIR}/include -L${GMODEL_DIR}/lib -lgmodel | |
./$(NAME) 1 | |
$(NAME).msh: $(NAME).geo | |
gmsh -3 $(NAME).geo -o $(NAME).msh |