<commit_before>#include <sstream>
#include "FemusDefault.hpp"
#include "FemusInit.hpp"
#include "MultiLevelMesh.hpp"
#include "WriterEnum.hpp"

using namespace femus;

// Test for SalomeIO reading


int main(int argc,char **args) {

  FemusInit init(argc,args,MPI_COMM_WORLD);

  std::string med_file = "FourQuad9.med";
  std::ostringstream mystream; mystream << "./" << DEFAULT_INPUTDIR << "/" << med_file;
  const std::string infile = mystream.str();

  //Adimensional
  double Lref = 1.;

  MultiLevelMesh ml_msh;
  ml_msh.ReadCoarseMesh(infile.c_str(),"fifth",Lref);
  
  ml_msh.PrintInfo();
  
//   ml_msh.SetWriter(XDMF);
//   ml_msh.GetWriter()->Write(DEFAULT_OUTPUTDIR,"biquadratic");
//   ml_msh.SetWriter(GMV);
//   ml_msh.GetWriter()->Write(DEFAULT_OUTPUTDIR,"biquadratic");
//   ml_msh.SetWriter(VTK);
//   ml_msh.GetWriter()->Write(DEFAULT_OUTPUTDIR,"biquadratic");

  return 0;
}<commit_msg>FourQuad9.med works, now go with groups<commit_after>#include <sstream>
#include "FemusDefault.hpp"
#include "FemusInit.hpp"
#include "MultiLevelMesh.hpp"
#include "WriterEnum.hpp"
#include "MultiLevelProblem.hpp"

using namespace femus;

// Test for SalomeIO reading


int main(int argc,char **args) {

  FemusInit init(argc,args,MPI_COMM_WORLD);

  std::string med_file = "FourQuad9.med";
  std::ostringstream mystream; mystream << "./" << DEFAULT_INPUTDIR << "/" << med_file;
  const std::string infile = mystream.str();

  //Adimensional
  double Lref = 1.;

  MultiLevelMesh ml_msh;
  ml_msh.ReadCoarseMesh(infile.c_str(),"fifth",Lref);
  ml_msh.PrintInfo();
  
  // define the multilevel solution and attach the mlMsh object to it
  MultiLevelSolution ml_sol(&ml_msh);

  // add variables to ml_sol
  ml_sol.AddSolution("U", LAGRANGE, FIRST);
  ml_sol.SetWriter(VTK);
  ml_sol.GetWriter()->SetDebugOutput(true);
  ml_sol.GetWriter()->Write(DEFAULT_OUTPUTDIR,"biquadratic");
  ml_sol.SetWriter(GMV);
  ml_sol.GetWriter()->SetDebugOutput(true);
  ml_sol.GetWriter()->Write(DEFAULT_OUTPUTDIR,"biquadratic");
  ml_sol.SetWriter(XDMF);
  ml_sol.GetWriter()->SetDebugOutput(true);
  ml_sol.GetWriter()->Write(DEFAULT_OUTPUTDIR,"biquadratic");

  
  return 0;
}
{'fraction_non_alphanumeric': 0.1533487297921478, 'fraction_numerical': 0.003233256351039261, 'mean_word_length': 5.206303724928366, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1774258', 'n_tokens_mistral': 830, 'n_tokens_neox': 803, 'n_words': 132}