X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1ba3b199ce47dca5644315bf6009a795d3816ffd..48296e83ce3ba1fa3658a3a74d10a536e33b3849:/docs/source/tuto_network_calibration/dahu_platform_ckmeans.cpp diff --git a/docs/source/tuto_network_calibration/dahu_platform_ckmeans.cpp b/docs/source/tuto_network_calibration/dahu_platform_ckmeans.cpp index d645ffaa39..dc7f1f1d6e 100644 --- a/docs/source/tuto_network_calibration/dahu_platform_ckmeans.cpp +++ b/docs/source/tuto_network_calibration/dahu_platform_ckmeans.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2006-2022. 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. */ @@ -88,7 +88,7 @@ static SegmentedRegression read_json_file(const std::string& jsonFile, std::mt19 double max = it.second.get_child("max_x").get_value(); coefs[max] = it.second.get_child("coefficient").get_value(); auto& mixture = mixtures[max]; - if (!mixture) + if (not mixture) mixture = std::make_shared(gen); mixture->append(it.second.get_child("mean").get_value(), it.second.get_child("sd").get_value(), it.second.get_child("prob").get_value()); @@ -138,4 +138,4 @@ void load_platform(const sg4::Engine& e) seg = read_json_file("recv_ckmeans.json", gen); smpi_register_op_cost_callback(SmpiOperation::RECV, std::bind(&smpi_cost_cb, seg, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3)); -} \ No newline at end of file +}