Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix Java build
[simgrid.git] / src / bindings / java / surf_swig.cpp
index b7f62f8..e01b952 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014. The SimGrid Team.
+/* Copyright (c) 2014-2015. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -24,8 +24,7 @@ CpuModel *getCpuModel(){
 CpuModel *java_cpu_model;
 static void java_cpu_model_init_preparse() {
   surf_cpu_model_pm = java_cpu_model;
-  xbt_dynar_push(model_list, &java_cpu_model);
-  xbt_dynar_push(model_list_invoke, &java_cpu_model);
+  xbt_dynar_push(all_existing_models, &java_cpu_model);
   sg_platf_host_add_cb(cpu_parse_init);
 }