Issue with C++ grid resizing
In C++ we can't resize the grid, nothing changes as a result I used a standard example from the documentation.
#include <gmshwrap.h>
int main(int argc, char** argv)
{
gmsh::initialize();
gmsh::model::add("model");
double size = 1.3;
gmsh::model::geo::addPoint(0., 0., 0., size, 1);
gmsh::model::geo::addPoint(10., 0., 0., size, 2);
gmsh::model::geo::addPoint(10., 10., 0., size, 3);
gmsh::model::geo::addPoint(0., 10., 0., size, 4);
gmsh::model::geo::addLine(1, 2, 1);
gmsh::model::geo::addLine(2, 3, 2);
gmsh::model::geo::addLine(3, 4, 3);
// try automatic assignement of tag
int line4 = gmsh::model::geo::addLine(4, 1);
gmsh::model::geo::addCurveLoop({ 1, 2, 3, line4 }, 1);
int surface = gmsh::model::geo::addPlaneSurface({ 1 });
gmsh::model::geo::synchronize();
gmsh::model::addPhysicalGroup(2, { surface });
gmsh::model::mesh::generate(2);
gmsh::write("square.msh");
return 0;
}
In Python it works.
Edited by Christophe Geuzaine