3 #include "MEDMEM_Exception.hxx"
4 #include "MEDMEM_Med.hxx"
7 #include "LocalTraceCollector.hxx"
8 #endif /* ifdef _DEBUG_*/
11 using namespace MEDMEM;
12 void usage(char * name)
14 cout << " " << name << " <input med file> <output med file> " <<endl ;
15 cout << " " << "(the two file name are mandatory)" << endl ;
19 int main (int argc, char ** argv) {
21 LocalTraceCollector::instance();
22 #endif /* ifdef _DEBUG_*/
24 if (argc != 3) usage(argv[0]);
26 string filenameIN = argv[1] ;
27 string filenameOUT = argv[2] ;
31 MED myMed(MED_DRIVER,filenameIN) ; // do readFilestruct !
33 // we read all meshes and fields in filenameIN
36 // we write all in file filenameOUT :
37 int id = myMed.addDriver(MED_DRIVER,filenameOUT) ;
40 } catch (MEDEXCEPTION& ex) {