Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update workstation handling in SimDag. Change the prefix of SimDag functions with...
[simgrid.git] / src / surf / surfxml_parse.c
index 1e88280..4ec4445 100644 (file)
@@ -83,6 +83,22 @@ void ETag_surfxml_include(void)
 
 void STag_surfxml_platform_description(void)
 {
+  double version=0.0;
+
+  sscanf(A_surfxml_platform_description_version,"%lg",&version);
+
+  xbt_assert0((version>=1.0),"******* BIG FAT WARNING *********\n "
+             "You're using an old XML file. "
+             "Since SimGrid 3.1, units are Bytes, Flops, and seconds "
+             "instead of MBytes, MFlops and seconds. "
+             "A script (surfxml_update.pl) to help you convert your old "
+             "platform files "
+             "is available in the contrib/platform_generation directory "
+             "of the simgrid repository. Please check also out the "
+             "SURF section of the ChangeLog for the 3.1 version. "
+             "Last, do not forget to also update your values for "
+             "the calls to MSG_task_create (if any).");
+
   STag_surfxml_platform_description_fun();
 }