// gen_LevelSet - An automatic generator of meshes from level-sets
// Copyright (C) 2012-2026 Eric Bechet, Frederic Duboeuf
//
// See the LICENSE file for license information.
// Please report all bugs and problems to <bechet@cadxfem.org> or <duboeuf@outlook.com>.


#include "GmshGlobal.h"
#include "levelSetSolver.h"
#include "PView.h"
#include "PViewData.h"
#include "genGroupOfElements.h"
#include <iterator>
//#include "function.h"
#include "fullMatrix.h"

int main (int argc, char* argv[])
{

  if (argc != 2)
  {
    printf("usage : elasticity input_file_name\n");
    return -1;
  }

  GmshInitialize(argc, argv);
  // globals are still present in Gmsh

  // GmshSetOption("General","Terminal",1.);

  // instanciate a solver
  LevelSetSolver mySolver;

  // read some input file
  mySolver.readInputFile(argv[1]);

  // solve the problem
  mySolver.solve();

  // stop gmsh
  GmshFinalize();
}
