Skip to content

Instantly share code, notes, and snippets.

@bgranzow
bgranzow / tagging.cc
Created January 12, 2017 01:41
Convert from a mesh tag to a mesh field
#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;
@ax3l
ax3l / CUDA_Compilers.md
Last active June 24, 2024 20:58
CUDA Compilers