X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1f249096fe7c1903e19b5b4a9f884f90b1a126a4..d20f024dba9ff1e9c8822237caaf963b9e913889:/teshsuite/surf/lmm_usage/lmm_usage.cpp diff --git a/teshsuite/surf/lmm_usage/lmm_usage.cpp b/teshsuite/surf/lmm_usage/lmm_usage.cpp index fdc551ab54..3a57290ef4 100644 --- a/teshsuite/surf/lmm_usage/lmm_usage.cpp +++ b/teshsuite/surf/lmm_usage/lmm_usage.cpp @@ -1,17 +1,18 @@ /* A few tests for the maxmin library */ -/* Copyright (c) 2007-2015. The SimGrid Team. +/* Copyright (c) 2007-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#include "xbt/sysdep.h" -#include "surf/maxmin.h" +#include "simgrid/msg.h" +#include "src/surf/surf_interface.hpp" +#include "surf/maxmin.hpp" #include "xbt/log.h" #include "xbt/module.h" -#include -#include "src/surf/surf_interface.hpp" +#include "xbt/sysdep.h" +#include XBT_LOG_NEW_DEFAULT_CATEGORY(surf_test, "Messages specific for surf example"); @@ -259,7 +260,7 @@ static void test3(method_t method) /* Creates the constraints */ lmm_constraint_t *tmp_cnst = xbt_new0(lmm_constraint_t, 15); - for (int i = 0; i < 15; i++) + for (int i = 0; i < 15; i++) tmp_cnst[i] = lmm_constraint_new(Sys, nullptr, B[i]); /* Creates the variables */ @@ -298,8 +299,9 @@ static void test3(method_t method) xbt_free(A); } -int main() +int main(int argc, char** argv) { + MSG_init(&argc, argv); XBT_INFO("***** Test 1 (Max-Min)"); test1(MAXMIN); XBT_INFO("***** Test 1 (Lagrange - Vegas)");