// Vorosweep - Copyright (C) 2010-2014 T. Mouton
//
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to <thibaud.mouton@gmail.com>.

// #include "sweepobject.h"
#include "vorosweep.h"
#include <time.h>
#include <fenv.h>

int main ( int argc, char** argv )
{
  char filename[100];
  sprintf ( filename, "%s.dat", argv[1] );
  
  using namespace vorosweep;
  
  Graph *mg = new Graph;
  mg->set_dumpmod ( 10 );
  
  mg->read_input_file(filename);
  
  feenableexcept(FE_DIVBYZERO| FE_INVALID|FE_OVERFLOW);

// 	mg->fakerun();
  
//	mg->read_borders("domain.dat");
  mg->default_borders();
  mg->init();
  mg->run();
  mg->finalize();
  mg->export_vtk ( "vorosweep" );
//   mg->export_vtk_flat ( "vorosweep" );
  mg->export_vector_graphic ( "vorosweep", false, true, true, 50 );

}
