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