X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FTools%2FMeshCut%2FMeshCut_Utils.cxx;h=0f28f02c6476a175d7d013d26d8c6ead11631a38;hp=0396707503c8cd3899a977800f2863861ed12bdb;hb=0fc0831670e27a5611b941c52dc152fd63964515;hpb=bd8f1aee7c78f7d2eb82bd4fec5e08c9e3d280ce diff --git a/src/Tools/MeshCut/MeshCut_Utils.cxx b/src/Tools/MeshCut/MeshCut_Utils.cxx index 039670750..0f28f02c6 100644 --- a/src/Tools/MeshCut/MeshCut_Utils.cxx +++ b/src/Tools/MeshCut/MeshCut_Utils.cxx @@ -1,9 +1,9 @@ -// Copyright (C) 2006-2013 EDF R&D +// Copyright (C) 2006-2020 EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -25,6 +25,7 @@ #include #include #include +#include using namespace std; using namespace MESHCUT; @@ -534,7 +535,7 @@ int MESHCUT::copieFichier(std::string source, std::string cible) med_geometry_type MESHCUT::InstanceMGE(TYPE_MAILLE TYPE) { - med_geometry_type typeBanaliseMED; + med_geometry_type typeBanaliseMED = MED_NONE; switch (TYPE) { @@ -589,7 +590,7 @@ med_geometry_type MESHCUT::InstanceMGE(TYPE_MAILLE TYPE) return typeBanaliseMED; } -int MESHCUT::chrono() +int MESHCUT::salome_chrono() { return clock() / CLOCKS_PER_SEC; } @@ -924,7 +925,7 @@ void MESHCUT::champType(std::string type, med_entity_type MEM, med_geometry_type if (debug) { cout << endl << " Liste des valeurs du champ brut aux 3 premiers éléments:" << endl; - for (imaille = 0; imaille < min(nmailles, 3); imaille++) + for (imaille = 0; imaille < std::min(nmailles, 3); imaille++) { cout << " Maille " << imaille << endl; for (igauss = 0; igauss < ngauss; igauss++) @@ -1034,7 +1035,7 @@ float MESHCUT::distance2(float x1, float y1, float z1, float x2, float y2, float /*! * Conversion HL-MED d'une table de connectivités */ -void MESHCUT::conversionCNX(int *CNXtm, TYPE_MAILLE tm, int N) +void MESHCUT::conversionCNX(med_int *CNXtm, TYPE_MAILLE tm, int N) { int n = Nnoeuds(tm);