4 #include "MEDMEM_Exception.hxx"
5 #include "MEDMEM_Med.hxx"
7 void usage(char * name)
9 cout << " " << name << " <input med file> <output med file> " <<endl ;
10 cout << " " << "(the two file name are mandatory)" << endl ;
14 int main (int argc, char ** argv) {
16 if (argc != 3) usage(argv[0]);
18 string filenameIN = argv[1] ;
19 string filenameOUT = argv[2] ;
23 MED myMed(MED_DRIVER,filenameIN) ; // do readFilestruct !
25 // we read all meshes and fields in filenameIN
28 // we write all in file filenameOUT :
29 int id = myMed.addDriver(MED_DRIVER,filenameOUT) ;
32 } catch (MEDEXCEPTION& ex) {