From: eap Date: Tue, 28 Nov 2017 11:33:25 +0000 (+0300) Subject: typo-fix by Kunda X-Git-Tag: V9_0_0~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=68291f2f5498143761e7d2b37e4113fc976517d3;p=tools%2Fmedcoupling.git typo-fix by Kunda --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 76c507233..04364e614 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,7 @@ INCLUDE(SalomeSetupPlatform) # User options # ============ INCLUDE(CMakeDependentOption) -OPTION(MEDCOUPLING_MICROMED "Build MED without MED file dependancy." OFF) +OPTION(MEDCOUPLING_MICROMED "Build MED without MED file dependency." OFF) OPTION(MEDCOUPLING_ENABLE_PYTHON "Build PYTHON bindings." ON) OPTION(MEDCOUPLING_ENABLE_PARTITIONER "Build MEDPartitioner." ON) OPTION(MEDCOUPLING_ENABLE_RENUMBER "Build Renumber." ON) diff --git a/MEDCouplingConfig.cmake.in b/MEDCouplingConfig.cmake.in index 8621eead1..ba2800d75 100644 --- a/MEDCouplingConfig.cmake.in +++ b/MEDCouplingConfig.cmake.in @@ -1,6 +1,6 @@ # - Config file for the @PROJECT_NAME@ package # It defines the following variables. -# Specific to the pacakge @PROJECT_NAME@ itself: +# Specific to the package @PROJECT_NAME@ itself: # @PROJECT_NAME_UC@_ROOT_DIR_EXP - the root path of the installation providing this CMake file # diff --git a/doc/tutorial/atestMEDLoaderBasicAPI1.rst b/doc/tutorial/atestMEDLoaderBasicAPI1.rst index c343b4d9d..e88dc1d22 100644 --- a/doc/tutorial/atestMEDLoaderBasicAPI1.rst +++ b/doc/tutorial/atestMEDLoaderBasicAPI1.rst @@ -32,7 +32,7 @@ Reading, Writing a MED file using MEDLoader basic API f.setMesh(targetMesh) f.setName("AFieldName") ml.WriteField("MyFirstField.med",f,True) - # Re-read it ans test equality + # Re-read it and test equality f2 = ml.ReadFieldCell("MyFirstField.med", f.getMesh().getName(), 0, f.getName(), 7, 8) print "Is the read field identical to 'f' ?", f2.isEqual(f,1e-12,1e-12) # Writing in several steps diff --git a/doc/tutorial/medcoupling_2Dpolygon.rst b/doc/tutorial/medcoupling_2Dpolygon.rst index 706875736..e7b14dd1f 100644 --- a/doc/tutorial/medcoupling_2Dpolygon.rst +++ b/doc/tutorial/medcoupling_2Dpolygon.rst @@ -20,7 +20,7 @@ To implement this exercice we use the python language script and import the MEDC from math import * -Then we must instanciate a meshing object:: +Then we must instantiate a meshing object:: mesh=MEDCouplingUMesh.New() mesh.setMeshDimension(2) diff --git a/doc/tutorial/medcoupling_3Dcube.rst b/doc/tutorial/medcoupling_3Dcube.rst index 86f462769..b589fb503 100644 --- a/doc/tutorial/medcoupling_3Dcube.rst +++ b/doc/tutorial/medcoupling_3Dcube.rst @@ -39,7 +39,7 @@ You must define 3 variables for space dimension, number of nodes on each dimensi Classical method ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -First instanciate a meshing object. Therefore, we need to define : +First instantiate a meshing object. Therefore, we need to define : * its name * its dimension @@ -248,7 +248,7 @@ First you need to create a CouplingField and initialize some data: * its values -The field will be a sin function dependant of distance of the barycenter of each cell from origin. So we need to create a barycenter field on the 3D mesh:: +The field will be a sin function dependent of distance of the barycenter of each cell from origin. So we need to create a barycenter field on the 3D mesh:: # Creation of field : with following definition # => Definition of the mesh support diff --git a/doc/tutorial/medcouplingloaderex2_en.rst b/doc/tutorial/medcouplingloaderex2_en.rst index 4feaa7272..02eadad92 100644 --- a/doc/tutorial/medcouplingloaderex2_en.rst +++ b/doc/tutorial/medcouplingloaderex2_en.rst @@ -102,7 +102,7 @@ Name this new instance "zone1Mobm", remove all orphan nodes and display. :: .. image:: images/zone1Mobm.jpg From now on we work on "zone1Mobm". We will reduce the working area of "fixm" around "zone1Mobm". -To achive this: reduce "fixm" taking only "fixm" cells located in the bounding box of "zone1Mobm" (MEDCouplingUMesh.getBoundingBox() and MEDCouplingUMesh.getCellsInBoundingBox()). +To achieve this: reduce "fixm" taking only "fixm" cells located in the bounding box of "zone1Mobm" (MEDCouplingUMesh.getBoundingBox() and MEDCouplingUMesh.getCellsInBoundingBox()). Name this object "partFixm", remove its orphan nodes and display it. :: ids2=fixm.getCellsInBoundingBox(zone1Mobm.getBoundingBox(),1e-10) diff --git a/doc/user/doxygen/doxfiles/appendix/install.dox b/doc/user/doxygen/doxfiles/appendix/install.dox index 77d81253c..eb142e0f9 100644 --- a/doc/user/doxygen/doxfiles/appendix/install.dox +++ b/doc/user/doxygen/doxfiles/appendix/install.dox @@ -22,7 +22,7 @@ The following options can be useful to configure MEDCoupling : - \a -DMEDCOUPLING_PARTITIONER_METIS=ON enables metis graph library in MEDPartitioner, - \a -DMEDCOUPLING_PARTITIONER_PARMETIS=ON enables parmetis graph library in MEDPartitioner, - \a -DMEDCOUPLING_PARTITIONER_SCOTCH=ON enables scotch graph library in MEDPartitioner, -- \a -DMEDCOUPLING_MICROMED=ON build MED with MED file dependancy, +- \a -DMEDCOUPLING_MICROMED=ON build MED with MED file dependency, - \a -DMEDCOUPLING_ENABLE_PYTHON=ON builds PYTHON bindings, - \a -DMEDCOUPLING_ENABLE_PARTITIONER builds MEDPartitioner, - \a -DMEDCOUPLING_ENABLE_RENUMBER builds Renumber, diff --git a/doc/user/doxygen/doxfiles/appendix/porting.dox b/doc/user/doxygen/doxfiles/appendix/porting.dox index d178f9625..f298dc545 100644 --- a/doc/user/doxygen/doxfiles/appendix/porting.dox +++ b/doc/user/doxygen/doxfiles/appendix/porting.dox @@ -34,9 +34,9 @@ The namespace ParaMEDMEM has been turned into MEDCoupling, and now contains MEDL The MEDLoader high level API is hence accessible: - at the MEDCoupling namespace level in C++ (direct static functions, no more MEDLoader class) - at the MEDLoader module level in Python. Scripts using the high level API of the MEDLoader -typically need to get read of all the occurences of "MEDLoader." in their code. +typically need to get read of all the occurrences of "MEDLoader." in their code. -Note that on the Python side the module MEDLoader is still here, but doesn't containt the MEDLoader class anymore. +Note that on the Python side the module MEDLoader is still here, but doesn't contain the MEDLoader class anymore. As before it re-includes all of MEDCoupling classes, plus the low level MEDLoader classes (MEDFile* classes). \section port-full-ref Name changes - Reference list diff --git a/doc/user/doxygen/doxfiles/appendix/references.dox b/doc/user/doxygen/doxfiles/appendix/references.dox index d0d0a47f3..e17cdca66 100644 --- a/doc/user/doxygen/doxfiles/appendix/references.dox +++ b/doc/user/doxygen/doxfiles/appendix/references.dox @@ -2,7 +2,7 @@ \page references References -Here follows a list of useful references : +Below is a list of useful references : -# \anchor RefManualMedFile Reference Manual for Med File, V. Lefebvre, E. Fayolle, Projet PAL: Définition du modèle d'échange de données MED V2.2, Note technique EDF/SINETICS, HI-26-03-012/A, https://hammi.extra.cea.fr/static/MED/web_med/index.html -# VTK home page: \c http://public.kitware.com/VTK diff --git a/doc/user/doxygen/doxfiles/examples/medcouplingexamplesother.doxy b/doc/user/doxygen/doxfiles/examples/medcouplingexamplesother.doxy index 1b27aa70c..f51d7abe6 100644 --- a/doc/user/doxygen/doxfiles/examples/medcouplingexamplesother.doxy +++ b/doc/user/doxygen/doxfiles/examples/medcouplingexamplesother.doxy @@ -203,7 +203,7 @@ Fields defined partially on a meshes can been read using 2 main approaches : \ref medcoupling "MEDCoupling" allows to make bridges between the approaches. For example \a pfl \ref MEDCoupling::DataArrayInt "DataArrayInt instance" retrieved directly from the file in the second approach can be retrieved starting from first approach. -Starting from mesh \a firstApproachMesh of read field in first approach \a fread, whith the whole mesh \a wholeMesh the profile \a pflComputed can be computed : +Starting from mesh \a firstApproachMesh of read field in first approach \a fread, with the whole mesh \a wholeMesh the profile \a pflComputed can be computed : \snippet MEDLoaderExamplesTest.py PySnippetReadFieldPartial1_5 diff --git a/doc/user/doxygen/doxfiles/reference/cpp/cpp.dox b/doc/user/doxygen/doxfiles/reference/cpp/cpp.dox index 084a8ae81..c2c8d4774 100644 --- a/doc/user/doxygen/doxfiles/reference/cpp/cpp.dox +++ b/doc/user/doxygen/doxfiles/reference/cpp/cpp.dox @@ -1,5 +1,5 @@ /*! - \page cpp Note for C++ developpers + \page cpp Note for C++ developers Using the C++ API provided by MED requires you to be familiar with some specificities which are not visible to the Python user. diff --git a/doc/user/doxygen/doxfiles/reference/distrib/parallel.dox b/doc/user/doxygen/doxfiles/reference/distrib/parallel.dox index ba6f66c15..2f75f644e 100644 --- a/doc/user/doxygen/doxfiles/reference/distrib/parallel.dox +++ b/doc/user/doxygen/doxfiles/reference/distrib/parallel.dox @@ -12,8 +12,8 @@ For historical reasons, all those items are in the same namespace as the non-par The core elements of the API are: - \ref CommInterface-det "CommInterface", this is the wrapper around the MPI library, and an instance of this object is required in many constructors of the following objects. -- \ref ParaMESH-det "ParaMESH", the parallel instanciation of a \ref meshes "MEDCoupling mesh" -- \ref ParaFIELD-det "ParaFIELD", the parallel instanciation of a \ref fields "MEDCoupling field" +- \ref ParaMESH-det "ParaMESH", the parallel instantiation of a \ref meshes "MEDCoupling mesh" +- \ref ParaFIELD-det "ParaFIELD", the parallel instantiation of a \ref fields "MEDCoupling field" - \ref MPIProcessorGroup-det "MPIProcessorGroup" (which inherits from the abstract \ref MEDCoupling::ProcessorGroup "ProcessorGroup"), a group of processors (typically MPI nodes) diff --git a/doc/user/doxygen/doxfiles/reference/fields/discretization.dox b/doc/user/doxygen/doxfiles/reference/fields/discretization.dox index 132645582..abb5dd13b 100644 --- a/doc/user/doxygen/doxfiles/reference/fields/discretization.dox +++ b/doc/user/doxygen/doxfiles/reference/fields/discretization.dox @@ -23,10 +23,10 @@ A field can be supported by: - Kriging points: built with \ref MEDCoupling::TypeOfField "ON_NODES_KR" The spatial discretization is at the center of the \ref interpolation "interpolation" mechanisms, -since one of the main interpolation paramter is indeed specifying from which source discretization +since one of the main interpolation parameter is indeed specifying from which source discretization to which target discretization one wants to go. For example: -- a P0->P0 interpolation means that a field on cells will be transfered to another cell-based field; -- a P1->P0 interpolation means that a field on nodes this time will be transfered to a cell-based field. +- a P0->P0 interpolation means that a field on cells will be transferred to another cell-based field; +- a P1->P0 interpolation means that a field on nodes this time will be transferred to a cell-based field. - etc ... Finally, in the code itself, the class \ref MEDCoupling::MEDCouplingFieldDiscretization "MEDCouplingFieldDiscretization" diff --git a/doc/user/doxygen/doxfiles/reference/interpolation/Geometric2D.dox b/doc/user/doxygen/doxfiles/reference/interpolation/Geometric2D.dox index a00934f61..3ddb29c31 100644 --- a/doc/user/doxygen/doxfiles/reference/interpolation/Geometric2D.dox +++ b/doc/user/doxygen/doxfiles/reference/interpolation/Geometric2D.dox @@ -106,7 +106,7 @@ The method in charge of that is INTERP_KERNEL::QuadraticPolygon::performLocating \subsection interpkernelGeo2DBoolOpStep3 Step3 : Result polygon building. This stage links each edge with wanted loc. \b Contrary to last 2 steps it is obviously boolean -operation dependant. Let's take the case of the intersection that is used in +operation dependent. Let's take the case of the intersection that is used in P0->P0 interpolation. \n The principle of result polygon building is to build polygon by taking edges localized as \b in or \b on. diff --git a/doc/user/doxygen/doxfiles/reference/interpolation/interptheory.dox b/doc/user/doxygen/doxfiles/reference/interpolation/interptheory.dox index 1c09b892f..21e5b8280 100644 --- a/doc/user/doxygen/doxfiles/reference/interpolation/interptheory.dox +++ b/doc/user/doxygen/doxfiles/reference/interpolation/interptheory.dox @@ -257,7 +257,7 @@ If we apply the formula \ref TableNatureOfField "above" it leads to the followin \end{tabular}\right] \f] -This type of nature is particulary recommended to interpolate an intensive \b density +This type of nature is particularly recommended to interpolate an intensive \b density field (moderator density, power density). The difference with \ref TableNatureOfFieldExampleConservVol "conservative volumic" seen above is that here the target field is homogenized to the \b whole target cell. It explains why this nature of field does not follow the maximum principle. diff --git a/doc/user/doxygen/doxfiles/reference/interpolation/mapped_bary.dox b/doc/user/doxygen/doxfiles/reference/interpolation/mapped_bary.dox index c724d851c..139085a24 100644 --- a/doc/user/doxygen/doxfiles/reference/interpolation/mapped_bary.dox +++ b/doc/user/doxygen/doxfiles/reference/interpolation/mapped_bary.dox @@ -46,7 +46,7 @@ In case where \f$A_yN_x -N_yA_x = 0 \f$ we have a degenerated unique solution fo \subsection{Rectangle} -Finally it is worth puting aside the case \f$\mathbf{N} = 0\f$ (rectangle), which boils down to solving an ordinary +Finally it is worth putting aside the case \f$\mathbf{N} = 0\f$ (rectangle), which boils down to solving an ordinary 2-unknows system: \f[ x = \frac{p_x A_y - p_y A_x}{C_x A_y - C_y A_x}, y = \frac{C_x p_y-C_y p_x}{C_x A_y - C_y A_x} \f] diff --git a/doc/user/doxygen/doxfiles/reference/meshes/meshes.dox b/doc/user/doxygen/doxfiles/reference/meshes/meshes.dox index 65a84baa2..3c537d244 100644 --- a/doc/user/doxygen/doxfiles/reference/meshes/meshes.dox +++ b/doc/user/doxygen/doxfiles/reference/meshes/meshes.dox @@ -6,7 +6,7 @@ Several types of meshes are available in MEDCoupling: -- \subpage MEDCouplingPointSetPage "Point set mesh" (abstract, can not be instanciated) +- \subpage MEDCouplingPointSetPage "Point set mesh" (abstract, can not be instantiated) - \subpage MEDCouplingUMeshPage "Unstructured meshes" - \subpage MEDCouplingCMeshPage "Cartesian meshes" - \subpage MEDCouplingExtrudedPage "3D Extruded meshes" diff --git a/doc/user/doxygen/doxfiles/start/library.dox b/doc/user/doxygen/doxfiles/start/library.dox index 4091b76d6..5009f99a9 100644 --- a/doc/user/doxygen/doxfiles/start/library.dox +++ b/doc/user/doxygen/doxfiles/start/library.dox @@ -8,7 +8,7 @@ this situation. "MED" can (unfortunately) refer to: - \ref med-file "MED file format": the file format used to save a mesh (".med" extension) -- \ref med-file "MED-file library": the C++ library developped by EdF R&D (and provided +- \ref med-file "MED-file library": the C++ library developed by EdF R&D (and provided with SALOME) to read/write MED file (warning: for advanced users only!) - \ref medcoupling "MEDCoupling": the (relatively) high level API to deal with mesh and fields in memory - \ref medloader MEDLoader: part of the library dedicated to file I/O = a more user-friendly API than the MED-file library API @@ -19,7 +19,7 @@ this situation. The most common confusion is between the MED library (what you are reading at present) and the MED-file library ("MED fichier"). -The MED-file library is part of the prerequisites of the MED libary, and its only purpose is to read and write +The MED-file library is part of the prerequisites of the MED library, and its only purpose is to read and write MED files. This is a low level API written in C, and giving a fine-grain access to the structure of the MED files (.med). The architecture diagramm below details those points further. diff --git a/doc/user/doxygen/doxfiles/start/start.dox b/doc/user/doxygen/doxfiles/start/start.dox index 9780907b8..4f59b088d 100644 --- a/doc/user/doxygen/doxfiles/start/start.dox +++ b/doc/user/doxygen/doxfiles/start/start.dox @@ -1,7 +1,7 @@ /*! \page start Getting started -If you are completly new to MED, this page will help you grasp the main concepts +If you are completely new to MED, this page will help you grasp the main concepts used overall in the \ref library "MED world", and have an idea of what you can achieve with MED. The tutorial is also a good way to start. diff --git a/src/INTERP_KERNEL/CurveIntersector.txx b/src/INTERP_KERNEL/CurveIntersector.txx index 13456410f..73f4b1f85 100644 --- a/src/INTERP_KERNEL/CurveIntersector.txx +++ b/src/INTERP_KERNEL/CurveIntersector.txx @@ -104,7 +104,7 @@ namespace INTERP_KERNEL } /*! - Computes the bouding box of a given element. iP in numPol mode. + Computes the bounding box of a given element. iP in numPol mode. */ template void CurveIntersector::getElemBB (double* bb, diff --git a/src/INTERP_KERNEL/DirectedBoundingBox.cxx b/src/INTERP_KERNEL/DirectedBoundingBox.cxx index 757fd3707..7bd2063a5 100644 --- a/src/INTERP_KERNEL/DirectedBoundingBox.cxx +++ b/src/INTERP_KERNEL/DirectedBoundingBox.cxx @@ -201,7 +201,7 @@ namespace INTERP_KERNEL //================================================================================ /*! - * \brief Creates empty box intended to further initalization via setData() + * \brief Creates empty box intended to further initialization via setData() */ //================================================================================ diff --git a/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx b/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx index 782d756e5..a736b203e 100644 --- a/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx +++ b/src/INTERP_KERNEL/ExprEval/InterpKernelExprParser.cxx @@ -547,7 +547,7 @@ void ExprParser::parseDeeper() } /*! - * This method has the responsability to see if this->_expr can be seen as a unary function of something. + * This method has the responsibility to see if this->_expr can be seen as a unary function of something. * Something defined as the contain of highest level barckets. * Typically '(3*x+2)' and 'cos(4*l+p*n)' will be intercepted by this method whereas '3*x+2' not...etc.. */ @@ -594,9 +594,9 @@ void ExprParser::parseUnaryFunc() } /*! - * This method has the responsability to see if this->_expr is interpretable without any recursion. + * This method has the responsibility to see if this->_expr is interpretable without any recursion. * \return true if no recursion needed, false if this->_expr is too complex to be interpreted at this level. - * \throw exception if this->_expr is simple enough to try to interprate this and this expression contains an error. + * \throw exception if this->_expr is simple enough to try to interpret this and this expression contains an error. */ bool ExprParser::tryToInterpALeaf() { @@ -941,7 +941,7 @@ void ExprParser::checkBracketsParity() const */ double ExprParser::ReplaceAndTraduce(std::string& expr, int id, std::size_t bg, std::size_t end, int& delta) { - static const char MSG[]="Interal error : A string expected to be a float is not one ! Bug to signal !"; + static const char MSG[]="Internal error : A string expected to be a float is not one ! Bug to signal !"; std::istringstream stream; std::ostringstream oss; std::size_t end2=end!=std::string::npos?end-bg:end; diff --git a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdge.cxx b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdge.cxx index 37dd4f892..27a9acb99 100644 --- a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdge.cxx +++ b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdge.cxx @@ -288,7 +288,7 @@ void IntersectElement::performMerging(MergePoints& commonNode) const } /*! - * This methode is const because 'node' is supposed to be equal geomitrically to _node. + * This method is const because 'node' is supposed to be equal geometrically to _node. */ void IntersectElement::setNode(Node *node) const { @@ -746,7 +746,7 @@ bool Edge::Intersect(const Edge *f1, const Edge *f2, EdgeIntersector *intersecto if(intersector->intersect(whereToFind,newNodes,order,commonNode)) { if(newNodes.empty()) - throw Exception("Internal error occured - error in intersector implementation!");// This case should never happen + throw Exception("Internal error occurred - error in intersector implementation!");// This case should never happen std::vector::iterator iter=newNodes.begin(); std::vector::reverse_iterator iterR=newNodes.rbegin(); f1->addSubEdgeInVector(f1->getStartNode(),*iter,outValForF1); diff --git a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeArcCircle.cxx b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeArcCircle.cxx index fc3fce7ed..0e2ec6ce9 100644 --- a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeArcCircle.cxx +++ b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DEdgeArcCircle.cxx @@ -131,7 +131,7 @@ bool ArcCArcCIntersector::internalAreColinears(const EdgeArcCircle& a1, const Ed a2.getCenter(centerL); radiusL=a2.getRadius(); a1.getCenter(centerB); radiusB=a1.getRadius(); } - // dividing from the begining by radiusB^2 to keep precision + // dividing from the beginning by radiusB^2 to keep precision distBetweenCenters=Node::distanceBtw2PtSq(centerL,centerB); cst=distBetweenCenters/(radiusB*radiusB); cst+=radiusL*radiusL/(radiusB*radiusB); @@ -466,7 +466,7 @@ void EdgeArcCircle::unApplySimilarity(double xBary, double yBary, double dimChar /*! * 'eps' is expected to be > 0. * 'conn' is of size 3. conn[0] is start id, conn[1] is end id and conn[2] is middle id. - * 'offset' is typically the number of nodes already existing in global 2D curve mesh. Additionnal coords 'addCoo' ids will be put after the already existing. + * 'offset' is typically the number of nodes already existing in global 2D curve mesh. Additional coords 'addCoo' ids will be put after the already existing. */ void EdgeArcCircle::tesselate(const int *conn, int offset, double eps, std::vector& newConn, std::vector& addCoo) const { diff --git a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx index 9cfb34075..98f2f4612 100644 --- a/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx +++ b/src/INTERP_KERNEL/Geometric2D/InterpKernelGeo2DQuadraticPolygon.cxx @@ -270,8 +270,8 @@ double QuadraticPolygon::intersectWithAbs(QuadraticPolygon& other) * This method splits 'this' with 'other' into smaller pieces localizable. 'mapThis' is a map that gives the correspondance * between nodes contained in 'this' and node ids in a global mesh. * In the same way, 'mapOther' gives the correspondance between nodes contained in 'other' and node ids in a - * global mesh from wich 'other' is extracted. - * This method has 1 out paramater : 'edgesThis', After the call of this method, it contains the nodal connectivity (including type) + * global mesh from which 'other' is extracted. + * This method has 1 out parameter : 'edgesThis', After the call of this method, it contains the nodal connectivity (including type) * of 'this' into globlal "this mesh". * This method has 2 in/out parameters : 'subDivOther' and 'addCoo'.'otherEdgeIds' is useful to put values in * 'edgesThis', 'subDivOther' and 'addCoo'. @@ -1140,7 +1140,7 @@ std::list::iterator QuadraticPolygon::fillAsMuchAsPossibleWi if(!direction) it.previousLoop(); Node *nodeToTest; - int szMax(pol1Splitted.size()+1),ii(0);// here a protection against agressive users of IntersectMeshes of invalid input meshes + int szMax(pol1Splitted.size()+1),ii(0);// here a protection against aggressive users of IntersectMeshes of invalid input meshes std::list::iterator ret; do { @@ -1157,7 +1157,7 @@ std::list::iterator QuadraticPolygon::fillAsMuchAsPossibleWi ii++; } while(ret==iEnd && ii @@ -376,7 +376,7 @@ namespace INTERP_KERNEL throw INTERP_KERNEL::Exception("Invalid method specified or intersection type ! Must be in : \"P0P0\" \"P0P1\" \"P1P0\" or \"P1P1\""); /****************************************************************/ /* Create a search tree based on the bounding boxes */ - /* Instanciate the intersector and initialise the result vector */ + /* Instantiate the intersector and initialise the result vector */ /****************************************************************/ long start_filtering=clock(); diff --git a/src/INTERP_KERNEL/InterpolationUtils.hxx b/src/INTERP_KERNEL/InterpolationUtils.hxx index 2c3cb6501..e222e1b07 100644 --- a/src/INTERP_KERNEL/InterpolationUtils.hxx +++ b/src/INTERP_KERNEL/InterpolationUtils.hxx @@ -837,7 +837,7 @@ namespace INTERP_KERNEL } /*! Function that compares two angles from the values of the pairs (sin,cos)*/ - /*! Angles are considered in [0, 2Pi] bt are not computed explicitely */ + /*! Angles are considered in [0, 2Pi] bt are not computed explicitly */ class AngleLess { public: @@ -1048,9 +1048,9 @@ namespace INTERP_KERNEL // just to be able to compile } - /*_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _*/ - /* Checks wether point A is inside the quadrangle BCDE */ - /*_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _*/ + /*_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ */ + /* Checks whether point A is inside the quadrangle BCDE */ + /*_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ */ template inline double check_inside(const double* A,const double* B,const double* C,const double* D, const double* E,double* ABC, double* ADE) diff --git a/src/INTERP_KERNEL/PlanarIntersector.txx b/src/INTERP_KERNEL/PlanarIntersector.txx index 92099bac1..5824d6923 100644 --- a/src/INTERP_KERNEL/PlanarIntersector.txx +++ b/src/INTERP_KERNEL/PlanarIntersector.txx @@ -93,7 +93,7 @@ namespace INTERP_KERNEL } /*! - Computes the bouding box of a given element. iP in numPol mode. + Computes the bounding box of a given element. iP in numPol mode. */ template void PlanarIntersector::getElemBB(double* bb, const MyMeshType& mesh, ConnType iP, ConnType nb_nodes) @@ -380,7 +380,7 @@ namespace INTERP_KERNEL Coords_B[SPACEDIM*i_B+idim] -= proj*linear_comb[idim]; } - //Buid the matrix sending A into the Oxy plane and apply it to A and B + //Build the matrix sending A into the Oxy plane and apply it to A and B if(do_rotate) { TranslationRotationMatrix rotation; diff --git a/src/INTERP_KERNEL/PointLocator2DIntersector.txx b/src/INTERP_KERNEL/PointLocator2DIntersector.txx index eb5044227..d41b3fcc0 100644 --- a/src/INTERP_KERNEL/PointLocator2DIntersector.txx +++ b/src/INTERP_KERNEL/PointLocator2DIntersector.txx @@ -118,7 +118,7 @@ namespace INTERP_KERNEL const double * sourceTria, std::vector& res) { - throw INTERP_KERNEL::Exception("intersectGeoBary incompatible with PointLocator. Desactivate P1P0Bary to avoid the problem"); + throw INTERP_KERNEL::Exception("intersectGeoBary incompatible with PointLocator. Deactivate P1P0Bary to avoid the problem"); return 0.; } diff --git a/src/INTERP_KERNEL/PolygonAlgorithms.txx b/src/INTERP_KERNEL/PolygonAlgorithms.txx index 359155495..bf606e926 100644 --- a/src/INTERP_KERNEL/PolygonAlgorithms.txx +++ b/src/INTERP_KERNEL/PolygonAlgorithms.txx @@ -37,7 +37,7 @@ namespace INTERP_KERNEL /*************************************************************/ /* Computes the 3D intersection between two COPLANAR */ /* Segments [A,B] and [C,D], stores the result in V. */ - /* If A belongs to [CD] then the vertex E (preceeding A) */ + /* If A belongs to [CD] then the vertex E (preceding A) */ /* is used to decide if the crossing is real. If A coincides */ /* with C or D, a special treatment is performed */ /*************************************************************/ @@ -71,7 +71,7 @@ namespace INTERP_KERNEL { if(distance2(A,D)<_epsilon) crossprod(A,C,E,_vdouble);//store the crossprod between vectors AC and AE (E=vertex preceding A) - return false;//case of paralell segments + return false;//case of parallel segments } case 3://beware AB and CD may belong to a vertical plane det = determinant(&AB[1],&DC[1]);//determinant of the last two coefficients @@ -94,7 +94,7 @@ namespace INTERP_KERNEL { if(distance2(A,D)<_epsilon) crossprod(A,C,E,_vdouble);//store the crossprod between vectors AC and AE (E=vertex preceding A) - return false;//case of paralell segments + return false;//case of parallel segments } } } @@ -269,7 +269,7 @@ namespace INTERP_KERNEL /*******************************************************/ /* adds the possible crossings between segments [A,B] (with end-point global indices i and i_next) */ /*and segments [C,D] and [E,F] to the list inter and updates _End_segments */ - /* In cases of ambiguity, the vertex G is used to decide wether the crossing should be accepted */ + /* In cases of ambiguity, the vertex G is used to decide whether the crossing should be accepted */ /*******************************************************/ template inline void PolygonAlgorithms::addCrossings( const double * A, const double * B, int i , int i_next, diff --git a/src/INTERP_KERNEL/VolSurfUser.cxx b/src/INTERP_KERNEL/VolSurfUser.cxx index 5877f0e31..80b7f238b 100644 --- a/src/INTERP_KERNEL/VolSurfUser.cxx +++ b/src/INTERP_KERNEL/VolSurfUser.cxx @@ -246,7 +246,7 @@ namespace INTERP_KERNEL } /*! - * \param [out] matrix contain a dense matrix of size 12 with 3 rows containing each 4 colums. This matrix is the reduction of 4x4 matrix but the last + * \param [out] matrix contain a dense matrix of size 12 with 3 rows containing each 4 columns. This matrix is the reduction of 4x4 matrix but the last * line containing [0,0,0,1] is omitted. */ bool ComputeRotTranslationMatrixToPut3PointsOnOXY(const double *p0, const double *p1, const double *p2, double *matrix) diff --git a/src/INTERP_KERNELTest/InterpolationOptionsTest.cxx b/src/INTERP_KERNELTest/InterpolationOptionsTest.cxx index c14e78b4a..8b8b78dfe 100644 --- a/src/INTERP_KERNELTest/InterpolationOptionsTest.cxx +++ b/src/INTERP_KERNELTest/InterpolationOptionsTest.cxx @@ -79,7 +79,7 @@ namespace INTERP_TEST MEDCouplingNormalizedUnstructuredMesh<2,2> wrap_target_mesh(target_mesh_mc); // Go for interpolation... INTERP_KERNEL::Interpolation2D myInterpolator; - //optionnal call to parametrize your interpolation. First precision, tracelevel, intersector wanted. + //optional call to parametrize your interpolation. First precision, tracelevel, intersector wanted. myInterpolator.setPrecision(1e-7); myInterpolator.setPrintLevel(1); source_mesh->decrRef(); diff --git a/src/INTERP_KERNELTest/MeshTestToolkit.txx b/src/INTERP_KERNELTest/MeshTestToolkit.txx index ff6c9dd6f..ae583ffb3 100644 --- a/src/INTERP_KERNELTest/MeshTestToolkit.txx +++ b/src/INTERP_KERNELTest/MeshTestToolkit.txx @@ -402,7 +402,7 @@ namespace INTERP_TEST * @param mesh2path the path to the file containing the target mesh, relative to {$MEDCOUPLING_ROOT_DIR}/share/resources/med/ * @param mesh2 the name of the target mesh * @param correctVol the total volume of the intersection of the two meshes - * @param prec maximum relative error to be tolerated in volume comparisions + * @param prec maximum relative error to be tolerated in volume comparisons * @param doubleTest if false, only the test with mesh 1 as the source mesh and mesh 2 as the target mesh will be performed * */ @@ -467,7 +467,7 @@ namespace INTERP_TEST * @param mesh1 the name of the source mesh * @param mesh2 the name of the target mesh * @param correctVol the total volume of the intersection of the two meshes - * @param prec maximum relative error to be tolerated in volume comparisions + * @param prec maximum relative error to be tolerated in volume comparisons * @param doubleTest if false, only the test with mesh 1 as the source mesh and mesh 2 as the target mesh will be performed * */ diff --git a/src/INTERP_KERNELTest/QuadraticPlanarInterpTest2.cxx b/src/INTERP_KERNELTest/QuadraticPlanarInterpTest2.cxx index 4f78ab384..320130acb 100644 --- a/src/INTERP_KERNELTest/QuadraticPlanarInterpTest2.cxx +++ b/src/INTERP_KERNELTest/QuadraticPlanarInterpTest2.cxx @@ -361,7 +361,7 @@ void QuadraticPlanarInterpTest::IntersectArcCircleBase() bool obvious,areOverlapped; intersector->areOverlappedOrOnlyColinears(0,obvious,areOverlapped); CPPUNIT_ASSERT(!obvious && !areOverlapped); - CPPUNIT_ASSERT(intersector->intersect(0,v4,order,v3)); CPPUNIT_ASSERT(order); // order has no sence here because v4.size() expected to 1 but for valgrind serenity test. + CPPUNIT_ASSERT(intersector->intersect(0,v4,order,v3)); CPPUNIT_ASSERT(order); // order has no sense here because v4.size() expected to 1 but for valgrind serenity test. CPPUNIT_ASSERT_EQUAL(1,(int)v4.size()); CPPUNIT_ASSERT_EQUAL(0,(int)v3.getNumberOfAssociations()); CPPUNIT_ASSERT_DOUBLES_EQUAL(e1->getRadius(),Node::distanceBtw2Pt(e1->getCenter(),(*(v4[0]))),ADMISSIBLE_ERROR); CPPUNIT_ASSERT_DOUBLES_EQUAL(e2->getRadius(),Node::distanceBtw2Pt(e2->getCenter(),(*(v4[0]))),ADMISSIBLE_ERROR); diff --git a/src/INTERP_KERNELTest/SingleElementPlanarTests.cxx b/src/INTERP_KERNELTest/SingleElementPlanarTests.cxx index 3aac0de46..80cd3770e 100644 --- a/src/INTERP_KERNELTest/SingleElementPlanarTests.cxx +++ b/src/INTERP_KERNELTest/SingleElementPlanarTests.cxx @@ -231,7 +231,7 @@ namespace INTERP_TEST { INTERP_KERNEL::PolygonAlgorithms<2> intersector (_Epsilon, _Precision);; /* - ////////////////// TEST DESACTIVATED by A. GEAY because memory fault : + ////////////////// TEST DEACTIVATED by A. GEAY because memory fault : // conditional jump INTERP_KERNEL::PolygonAlgorithms<2>::intersectConvexPolygons(double const*, double const*, int, int) (PolygonAlgorithms.txx:629) std::deque< double > actual_result = intersector.intersectConvexPolygons(_square1,_square1,4,4); std::deque< double > expected_result; diff --git a/src/MEDCoupling/MEDCoupling1GTUMesh.cxx b/src/MEDCoupling/MEDCoupling1GTUMesh.cxx index 07c562a79..b4862d76e 100644 --- a/src/MEDCoupling/MEDCoupling1GTUMesh.cxx +++ b/src/MEDCoupling/MEDCoupling1GTUMesh.cxx @@ -145,7 +145,7 @@ std::set MEDCoupling1GTUMesh::getAllGeoTypes( * \a this is composed in cell types. * The returned array is of size 3*n where n is the number of different types present in \a this. * For every k in [0,n] ret[3*k+2]==-1 because it has no sense here. - * This parameter is kept only for compatibility with other methode listed above. + * This parameter is kept only for compatibility with other method listed above. */ std::vector MEDCoupling1GTUMesh::getDistributionOfTypes() const { @@ -1635,7 +1635,7 @@ void MEDCoupling1SGTUMesh::setNodalConnectivity(DataArrayInt *nodalConn) } /*! - * \return DataArrayInt * - the internal reference to the nodal connectivity. The caller is not reponsible to deallocate it. + * \return DataArrayInt * - the internal reference to the nodal connectivity. The caller is not responsible to deallocate it. */ DataArrayInt *MEDCoupling1SGTUMesh::getNodalConnectivity() const { @@ -1646,7 +1646,7 @@ DataArrayInt *MEDCoupling1SGTUMesh::getNodalConnectivity() const /*! * Allocates memory to store an estimation of the given number of cells. Closer is the estimation to the number of cells effectively inserted, * less will be the needs to realloc. If the number of cells to be inserted is not known simply put 0 to this parameter. - * If a nodal connectivity previouly existed before the call of this method, it will be reset. + * If a nodal connectivity previously existed before the call of this method, it will be reset. * * \param [in] nbOfCells - estimation of the number of cell \a this mesh will contain. */ @@ -1666,7 +1666,7 @@ void MEDCoupling1SGTUMesh::allocateCells(int nbOfCells) * \param [in] nodalConnOfCellEnd - the end (excluded) of nodal connectivity of the cell to add. * \throw If the length of the input nodal connectivity array of the cell to add is not equal to number of nodes per cell relative to the unique geometric type * attached to \a this. - * \thow If the nodal connectivity array in \a this is null (call MEDCoupling1SGTUMesh::allocateCells before). + * \throw If the nodal connectivity array in \a this is null (call MEDCoupling1SGTUMesh::allocateCells before). */ void MEDCoupling1SGTUMesh::insertNextCell(const int *nodalConnOfCellBg, const int *nodalConnOfCellEnd) { @@ -3302,7 +3302,7 @@ void MEDCoupling1DGTUMesh::allocateCells(int nbOfCells) * \param [in] nodalConnOfCellEnd - the end (excluded) of nodal connectivity of the cell to add. * \throw If the length of the input nodal connectivity array of the cell to add is not equal to number of nodes per cell relative to the unique geometric type * attached to \a this. - * \thow If the nodal connectivity array in \a this is null (call MEDCoupling1SGTUMesh::allocateCells before). + * \throw If the nodal connectivity array in \a this is null (call MEDCoupling1SGTUMesh::allocateCells before). */ void MEDCoupling1DGTUMesh::insertNextCell(const int *nodalConnOfCellBg, const int *nodalConnOfCellEnd) { @@ -3338,7 +3338,7 @@ void MEDCoupling1DGTUMesh::setNodalConnectivity(DataArrayInt *nodalConn, DataArr } /*! - * \return DataArrayInt * - the internal reference to the nodal connectivity. The caller is not reponsible to deallocate it. + * \return DataArrayInt * - the internal reference to the nodal connectivity. The caller is not responsible to deallocate it. */ DataArrayInt *MEDCoupling1DGTUMesh::getNodalConnectivity() const { @@ -3347,7 +3347,7 @@ DataArrayInt *MEDCoupling1DGTUMesh::getNodalConnectivity() const } /*! - * \return DataArrayInt * - the internal reference to the nodal connectivity index. The caller is not reponsible to deallocate it. + * \return DataArrayInt * - the internal reference to the nodal connectivity index. The caller is not responsible to deallocate it. */ DataArrayInt *MEDCoupling1DGTUMesh::getNodalConnectivityIndex() const { diff --git a/src/MEDCoupling/MEDCouplingCMesh.cxx b/src/MEDCoupling/MEDCouplingCMesh.cxx index 066d39ac4..d5a7c5a96 100644 --- a/src/MEDCoupling/MEDCouplingCMesh.cxx +++ b/src/MEDCoupling/MEDCouplingCMesh.cxx @@ -770,7 +770,7 @@ DataArrayDouble *MEDCouplingCMesh::computeIsoBarycenterOfNodesPerCell() const void MEDCouplingCMesh::renumberCells(const int *old2NewBg, bool check) { - throw INTERP_KERNEL::Exception("Functionnality of renumbering cell not available for CMesh !"); + throw INTERP_KERNEL::Exception("Functionality of renumbering cell not available for CMesh !"); } void MEDCouplingCMesh::getTinySerializationInformation(std::vector& tinyInfoD, std::vector& tinyInfo, std::vector& littleStrings) const diff --git a/src/MEDCoupling/MEDCouplingCartesianAMRMesh.cxx b/src/MEDCoupling/MEDCouplingCartesianAMRMesh.cxx index 87e4e2a53..d9722e011 100644 --- a/src/MEDCoupling/MEDCouplingCartesianAMRMesh.cxx +++ b/src/MEDCoupling/MEDCouplingCartesianAMRMesh.cxx @@ -385,7 +385,7 @@ void MEDCouplingCartesianAMRPatch::UpdateNeighborsOfOneWithTwoMixedLev(int ghost /*! * \a p1 is expected to be more refined than \a p2. \a p1 and \a p2 have to share a common ancestor. Compared to UpdateNeighborsOfOneWithTwoExt here \a p1 and \a p2 are \b not at the same level ! - * This method has 3 outputs. 2 two first are the resp the position of \a p1 and \a p2 relative to \a p1. And \a factToApplyOn2 is the coeff of refinement to be applied on \a p2 to be virtualy + * This method has 3 outputs. 2 two first are the resp the position of \a p1 and \a p2 relative to \a p1. And \a factToApplyOn2 is the coeff of refinement to be applied on \a p2 to be virtually * on the same level as \a p1. */ void MEDCouplingCartesianAMRPatch::ComputeZonesOfTwoRelativeToOneDiffLev(int ghostLev, const MEDCouplingCartesianAMRPatch *p1, const MEDCouplingCartesianAMRPatch *p2, std::vector< std::pair >& p1Zone, std::vector< std::pair >& p2Zone, std::vector& factToApplyOn2) diff --git a/src/MEDCoupling/MEDCouplingCurveLinearMesh.cxx b/src/MEDCoupling/MEDCouplingCurveLinearMesh.cxx index 6947fe451..378a0cf8c 100644 --- a/src/MEDCoupling/MEDCouplingCurveLinearMesh.cxx +++ b/src/MEDCoupling/MEDCouplingCurveLinearMesh.cxx @@ -255,7 +255,7 @@ std::string MEDCouplingCurveLinearMesh::simpleRepr() const double tt=getTime(tmpp1,tmpp2); ret << "Time attached to the mesh [unit] : " << tt << " [" << getTimeUnit() << "]\n"; ret << "Iteration : " << tmpp1 << " Order : " << tmpp2 << "\n"; - ret << "The nodal stucture of curve linear mesh is : ["; + ret << "The nodal structure of curve linear mesh is : ["; std::copy(_structure.begin(),_structure.end(),std::ostream_iterator(ret,",")); ret << "]\n"; ret << "The coords array is this : "; if((const DataArrayDouble *)_coords) @@ -794,7 +794,7 @@ void MEDCouplingCurveLinearMesh::getBarycenterAndOwnerMeshDim1(DataArrayDouble * void MEDCouplingCurveLinearMesh::renumberCells(const int *old2NewBg, bool check) { - throw INTERP_KERNEL::Exception("Functionnality of renumbering cell not available for CurveLinear Mesh !"); + throw INTERP_KERNEL::Exception("Functionality of renumbering cell not available for CurveLinear Mesh !"); } void MEDCouplingCurveLinearMesh::getTinySerializationInformation(std::vector& tinyInfoD, std::vector& tinyInfo, std::vector& littleStrings) const diff --git a/src/MEDCoupling/MEDCouplingFieldDiscretization.cxx b/src/MEDCoupling/MEDCouplingFieldDiscretization.cxx index fac00497f..cb3824a3c 100644 --- a/src/MEDCoupling/MEDCouplingFieldDiscretization.cxx +++ b/src/MEDCoupling/MEDCouplingFieldDiscretization.cxx @@ -140,7 +140,7 @@ MEDCouplingFieldDiscretization *MEDCouplingFieldDiscretization::New(TypeOfField case MEDCouplingFieldDiscretizationKriging::TYPE: return new MEDCouplingFieldDiscretizationKriging; default: - throw INTERP_KERNEL::Exception("Choosen discretization is not implemented yet."); + throw INTERP_KERNEL::Exception("Chosen discretization is not implemented yet."); } } @@ -361,7 +361,7 @@ void MEDCouplingFieldDiscretization::finishUnserialization(const std::vector=nbOfDesc) { - std::ostringstream oss; oss << "Cell # " << i << " of mesh \"" << mesh->getName() << "\" has an undefined gauss location ! Should never happend !"; + std::ostringstream oss; oss << "Cell # " << i << " of mesh \"" << mesh->getName() << "\" has an undefined gauss location ! Should never happened !"; throw INTERP_KERNEL::Exception(oss.str().c_str()); } if(dc[i]<0) diff --git a/src/MEDCoupling/MEDCouplingFieldDouble.cxx b/src/MEDCoupling/MEDCouplingFieldDouble.cxx index 0793503a9..cdf203d03 100644 --- a/src/MEDCoupling/MEDCouplingFieldDouble.cxx +++ b/src/MEDCoupling/MEDCouplingFieldDouble.cxx @@ -190,8 +190,8 @@ MEDCouplingFieldDouble *MEDCouplingFieldDouble::buildNewTimeReprFromThis(TypeOfT } /*! - * This method converts a field on nodes (\a this) to a cell field (returned field). The convertion is a \b non \b conservative remapping ! - * This method is useful only for users that need a fast convertion from node to cell spatial discretization. The algorithm applied is simply to attach + * This method converts a field on nodes (\a this) to a cell field (returned field). The conversion is a \b non \b conservative remapping ! + * This method is useful only for users that need a fast conversion from node to cell spatial discretization. The algorithm applied is simply to attach * to each cell the average of values on nodes constituting this cell. * * \return MEDCouplingFieldDouble* - a new instance of MEDCouplingFieldDouble. The @@ -246,8 +246,8 @@ MEDCouplingFieldDouble *MEDCouplingFieldDouble::nodeToCellDiscretization() const } /*! - * This method converts a field on cell (\a this) to a node field (returned field). The convertion is a \b non \b conservative remapping ! - * This method is useful only for users that need a fast convertion from cell to node spatial discretization. The algorithm applied is simply to attach + * This method converts a field on cell (\a this) to a node field (returned field). The conversion is a \b non \b conservative remapping ! + * This method is useful only for users that need a fast conversion from cell to node spatial discretization. The algorithm applied is simply to attach * to each node the average of values on cell sharing this node. If \a this lies on a mesh having orphan nodes the values applied on them will be NaN (division by 0.). * * \return MEDCouplingFieldDouble* - a new instance of MEDCouplingFieldDouble. The @@ -2013,7 +2013,7 @@ MCAuto MEDCouplingFieldDouble::convertQuadraticCellsToLi /*! * This is expected to be a 3 components vector field on nodes (if not an exception will be thrown). \a this is also expected to lie on a MEDCouplingPointSet mesh. - * Finaly \a this is also expected to be consistent. + * Finally \a this is also expected to be consistent. * In these conditions this method returns a newly created field (to be dealed by the caller). * The returned field will also 3 compo vector field be on nodes lying on the same mesh than \a this. * diff --git a/src/MEDCoupling/MEDCouplingFieldT.txx b/src/MEDCoupling/MEDCouplingFieldT.txx index 33ef4a4b4..6e51e5af9 100644 --- a/src/MEDCoupling/MEDCouplingFieldT.txx +++ b/src/MEDCoupling/MEDCouplingFieldT.txx @@ -441,7 +441,7 @@ namespace MEDCoupling } /*! - * Builds a newly created field, that the caller will have the responsability to deal with. + * Builds a newly created field, that the caller will have the responsibility to deal with. * \n This method makes the assumption that \a this field is correctly defined when this method is called (\a this->checkConsistencyLight() returns without any exception thrown), **no check of this will be done**. * \n This method returns a restriction of \a this so that only tuple ids specified in [ \a partBg , \a partEnd ) will be contained in the returned field. * \n Parameter [\a partBg, \a partEnd ) specifies **cell ids whatever the spatial discretization** of \a this ( @@ -504,7 +504,7 @@ namespace MEDCoupling } /*! - * Builds a newly created field, that the caller will have the responsability to deal with (decrRef()). + * Builds a newly created field, that the caller will have the responsibility to deal with (decrRef()). * This method makes the assumption that the field is correctly defined when this method is called, no check of this will be done. * This method returns a restriction of \a this so that only tuples with ids specified in \a part will be contained in the returned field. * Parameter \a part specifies **cell ids whatever the spatial discretization of this** ( diff --git a/src/MEDCoupling/MEDCouplingIMesh.cxx b/src/MEDCoupling/MEDCouplingIMesh.cxx index b61fac40c..a3d1511f4 100644 --- a/src/MEDCoupling/MEDCouplingIMesh.cxx +++ b/src/MEDCoupling/MEDCouplingIMesh.cxx @@ -1232,7 +1232,7 @@ DataArrayDouble *MEDCouplingIMesh::computeIsoBarycenterOfNodesPerCell() const void MEDCouplingIMesh::renumberCells(const int *old2NewBg, bool check) { - throw INTERP_KERNEL::Exception("Functionnality of renumbering cell not available for IMesh !"); + throw INTERP_KERNEL::Exception("Functionality of renumbering cell not available for IMesh !"); } void MEDCouplingIMesh::getTinySerializationInformation(std::vector& tinyInfoD, std::vector& tinyInfo, std::vector& littleStrings) const diff --git a/src/MEDCoupling/MEDCouplingMappedExtrudedMesh.cxx b/src/MEDCoupling/MEDCouplingMappedExtrudedMesh.cxx index 54c860cc4..72e3af513 100644 --- a/src/MEDCoupling/MEDCouplingMappedExtrudedMesh.cxx +++ b/src/MEDCoupling/MEDCouplingMappedExtrudedMesh.cxx @@ -178,7 +178,7 @@ MEDCouplingMappedExtrudedMesh *MEDCouplingMappedExtrudedMesh::clone(bool recDeep const DataArrayDouble *MEDCouplingMappedExtrudedMesh::getDirectAccessOfCoordsArrIfInStructure() const { - throw INTERP_KERNEL::Exception("MEDCouplingMappedExtrudedMesh::getDirectAccessOfCoordsArrIfInStructure : no direct acess of DataArrayDouble holding nodes !"); + throw INTERP_KERNEL::Exception("MEDCouplingMappedExtrudedMesh::getDirectAccessOfCoordsArrIfInStructure : no direct access of DataArrayDouble holding nodes !"); } bool MEDCouplingMappedExtrudedMesh::isEqualIfNotWhy(const MEDCouplingMesh *other, double prec, std::string& reason) const @@ -442,7 +442,7 @@ void MEDCouplingMappedExtrudedMesh::updateTime() const void MEDCouplingMappedExtrudedMesh::renumberCells(const int *old2NewBg, bool check) { - throw INTERP_KERNEL::Exception("Functionnality of renumbering cells unavailable for ExtrudedMesh"); + throw INTERP_KERNEL::Exception("Functionality of renumbering cells unavailable for ExtrudedMesh"); } /*! diff --git a/src/MEDCoupling/MEDCouplingMemArray.cxx b/src/MEDCoupling/MEDCouplingMemArray.cxx index 17d15a485..1c20ae77a 100644 --- a/src/MEDCoupling/MEDCouplingMemArray.cxx +++ b/src/MEDCoupling/MEDCouplingMemArray.cxx @@ -637,7 +637,7 @@ void DataArray::CheckValueInRange(int ref, int value, const std::string& msg) /*! * This method checks that [\b start, \b end) is compliant with ref length \b value. - * typicaly start in [0,\b value) and end in [0,\b value). If value==start and start==end, it is supported. + * typically start in [0,\b value) and end in [0,\b value). If value==start and start==end, it is supported. */ void DataArray::CheckValueInRangeEx(int value, int start, int end, const std::string& msg) { @@ -1617,7 +1617,7 @@ double DataArrayDouble::norm2() const /*! * Returns the maximum norm of the vector defined by \a this array. - * This method works even if the number of components is diferent from one. + * This method works even if the number of components is different from one. * If the number of elements in \a this is 0, -1. is returned. * \return double - the value of the maximum norm, i.e. * the maximal absolute value among values of \a this array (whatever its number of components). @@ -1640,7 +1640,7 @@ double DataArrayDouble::normMax() const /*! * Returns the minimum norm (absolute value) of the vector defined by \a this array. - * This method works even if the number of components is diferent from one. + * This method works even if the number of components is different from one. * If the number of elements in \a this is 0, std::numeric_limits::max() is returned. * \return double - the value of the minimum norm, i.e. * the minimal absolute value among values of \a this array (whatever its number of components). @@ -4250,7 +4250,7 @@ DataArrayInt *DataArrayInt::checkAndPreparePermutation() const } /*! - * This method tries to find the permutation to apply to the first input \a ids1 to obtain the same array (without considering strings informations) the second + * This method tries to find the permutation to apply to the first input \a ids1 to obtain the same array (without considering strings information) the second * input array \a ids2. * \a ids1 and \a ids2 are expected to be both a list of ids (both with number of components equal to one) not sorted and with values that can be negative. * This method will throw an exception is no such permutation array can be obtained. It is typically the case if there is some ids in \a ids1 not in \a ids2 or @@ -5605,7 +5605,7 @@ DataArrayInt *DataArrayInt::BuildListOfSwitchedOff(const std::vector& v) } /*! - * This method allows to put a vector of vector of integer into a more compact data stucture (skyline). + * This method allows to put a vector of vector of integer into a more compact data structure (skyline). * This method is not available into python because no available optimized data structure available to map std::vector< std::vector >. * * \param [in] v the input data structure to be translate into skyline format. @@ -5829,7 +5829,7 @@ DataArrayInt *DataArrayInt::buildUniqueNotSorted() const * "MEDCouplingUMesh::buildDescendingConnectivity" and * \ref MEDCoupling::MEDCouplingUMesh::getNodalConnectivityIndex * "MEDCouplingUMesh::getNodalConnectivityIndex" etc. - * This method preforms the reverse operation of DataArrayInt::computeOffsetsFull. + * This method performs the reverse operation of DataArrayInt::computeOffsetsFull. * \return DataArrayInt * - a new instance of DataArrayInt, whose number of tuples * equals to \a this->getNumberOfComponents() - 1, and number of components is 1. * The caller is to delete this array using decrRef() as it is no more needed. @@ -5905,7 +5905,7 @@ void DataArrayInt::computeOffsets() * components remains the same and number of tuples is inceamented by one.
* This method is useful for allToAllV in MPI with contiguous policy. This method * differs from computeOffsets() in that the number of tuples is changed by this one. - * This method preforms the reverse operation of DataArrayInt::deltaShiftIndex. + * This method performs the reverse operation of DataArrayInt::deltaShiftIndex. * \throw If \a this is not allocated. * \throw If \a this->getNumberOfComponents() != 1. * diff --git a/src/MEDCoupling/MEDCouplingMemArray.txx b/src/MEDCoupling/MEDCouplingMemArray.txx index 9fed17742..4cf654c86 100644 --- a/src/MEDCoupling/MEDCouplingMemArray.txx +++ b/src/MEDCoupling/MEDCouplingMemArray.txx @@ -404,7 +404,7 @@ namespace MEDCoupling /*! * This method performs systematically an allocation of \a newNbOfElements elements in \a this. * \a _nb_of_elem and \a _nb_of_elem_alloc will be equal even if only std::min(_nb_of_elem,newNbOfElements) come from the . - * The remaing part of the new allocated chunk are available but not set previouly ! + * The remaining part of the new allocated chunk are available but not set previously ! * * So this method should not be confused with MemArray::reserve that is close to MemArray::reAlloc but not same. */ @@ -704,7 +704,7 @@ namespace MEDCoupling } /*! - * This method desallocated \a this without modification of informations relative to the components. + * This method deallocated \a this without modification of information relative to the components. * After call of this method, DataArrayDouble::isAllocated will return false. * If \a this is already not allocated, \a this is let unchanged. */ diff --git a/src/MEDCoupling/MEDCouplingMesh.cxx b/src/MEDCoupling/MEDCouplingMesh.cxx index 551d4c3f7..8dc00b5ef 100644 --- a/src/MEDCoupling/MEDCouplingMesh.cxx +++ b/src/MEDCoupling/MEDCouplingMesh.cxx @@ -237,7 +237,7 @@ void MEDCouplingMesh::checkFastEquivalWith(const MEDCouplingMesh *other, double } /*! - * This method is very poor and looks only if \a this and \a other are candidate for merge of fields lying repectively on them. + * This method is very poor and looks only if \a this and \a other are candidate for merge of fields lying respectively on them. */ bool MEDCouplingMesh::areCompatibleForMerge(const MEDCouplingMesh *other) const { diff --git a/src/MEDCoupling/MEDCouplingRemapper.cxx b/src/MEDCoupling/MEDCouplingRemapper.cxx index 56e5b268e..b6407f88b 100644 --- a/src/MEDCoupling/MEDCouplingRemapper.cxx +++ b/src/MEDCoupling/MEDCouplingRemapper.cxx @@ -311,14 +311,14 @@ bool MEDCouplingRemapper::setOptionString(const std::string& key, const std::str } /*! - * This method returns the interpolation matrix policy. This policy specifies which interpolation matrix method to keep or prefered. + * This method returns the interpolation matrix policy. This policy specifies which interpolation matrix method to keep or preferred. * If interpolation matrix policy is : * - * - set to IK_ONLY_PREFERED (0) (the default) : the INTERP_KERNEL only method is prefered. That is to say, if it is possible to treat the case + * - set to IK_ONLY_PREFERED (0) (the default) : the INTERP_KERNEL only method is preferred. That is to say, if it is possible to treat the case * regarding spatial discretization of source and target with INTERP_KERNEL only method, INTERP_KERNEL only method will be performed. * If not, the \b not only INTERP_KERNEL method will be attempt. * - * - set to NOT_IK_ONLY_PREFERED (1) : the \b NOT only INTERP_KERNEL method is prefered. That is to say, if it is possible to treat the case + * - set to NOT_IK_ONLY_PREFERED (1) : the \b NOT only INTERP_KERNEL method is preferred. That is to say, if it is possible to treat the case * regarding spatial discretization of source and target with \b NOT only INTERP_KERNEL method, \b NOT only INTERP_KERNEL method, will be performed. * If not, the INTERP_KERNEL only method will be attempt. * @@ -340,11 +340,11 @@ int MEDCouplingRemapper::getInterpolationMatrixPolicy() const * * If interpolation matrix policy is : * - * - set to IK_ONLY_PREFERED (0) (the default) : the INTERP_KERNEL only method is prefered. That is to say, if it is possible to treat the case + * - set to IK_ONLY_PREFERED (0) (the default) : the INTERP_KERNEL only method is preferred. That is to say, if it is possible to treat the case * regarding spatial discretization of source and target with INTERP_KERNEL only method, INTERP_KERNEL only method will be performed. * If not, the \b not only INTERP_KERNEL method will be attempt. * - * - set to NOT_IK_ONLY_PREFERED (1) : the \b NOT only INTERP_KERNEL method is prefered. That is to say, if it is possible to treat the case + * - set to NOT_IK_ONLY_PREFERED (1) : the \b NOT only INTERP_KERNEL method is preferred. That is to say, if it is possible to treat the case * regarding spatial discretization of source and target with \b NOT only INTERP_KERNEL method, \b NOT only INTERP_KERNEL method, will be performed. * If not, the INTERP_KERNEL only method will be attempt. * @@ -507,7 +507,7 @@ int MEDCouplingRemapper::prepareInterpKernelOnlyUU() INTERP_KERNEL::Interpolation2D1D::DuplicateFacesType duplicateFaces=interpolation.retrieveDuplicateFaces(); if(!duplicateFaces.empty()) { - std::ostringstream oss; oss << "An unexpected situation happend ! For the following 1D Cells are part of edges shared by 2D cells :\n"; + std::ostringstream oss; oss << "An unexpected situation happened ! For the following 1D Cells are part of edges shared by 2D cells :\n"; for(std::map >::const_iterator it=duplicateFaces.begin();it!=duplicateFaces.end();it++) { oss << "1D Cell #" << (*it).first << " is part of common edge of following 2D cells ids : "; @@ -526,7 +526,7 @@ int MEDCouplingRemapper::prepareInterpKernelOnlyUU() INTERP_KERNEL::Interpolation2D3D::DuplicateFacesType duplicateFaces=interpolation.retrieveDuplicateFaces(); if(!duplicateFaces.empty()) { - std::ostringstream oss; oss << "An unexpected situation happend ! For the following 2D Cells are part of edges shared by 3D cells :\n"; + std::ostringstream oss; oss << "An unexpected situation happened ! For the following 2D Cells are part of edges shared by 3D cells :\n"; for(std::map >::const_iterator it=duplicateFaces.begin();it!=duplicateFaces.end();it++) { oss << "2D Cell #" << (*it).first << " is part of common face of following 3D cells ids : "; @@ -557,7 +557,7 @@ int MEDCouplingRemapper::prepareInterpKernelOnlyUU() INTERP_KERNEL::Interpolation2D3D::DuplicateFacesType duplicateFaces=interpolation.retrieveDuplicateFaces(); if(!duplicateFaces.empty()) { - std::ostringstream oss; oss << "An unexpected situation happend ! For the following 2D Cells are part of edges shared by 3D cells :\n"; + std::ostringstream oss; oss << "An unexpected situation happened ! For the following 2D Cells are part of edges shared by 3D cells :\n"; for(std::map >::const_iterator it=duplicateFaces.begin();it!=duplicateFaces.end();it++) { oss << "2D Cell #" << (*it).first << " is part of common face of following 3D cells ids : "; @@ -951,7 +951,7 @@ void MEDCouplingRemapper::checkPrepare() const /*! * This method builds a code considering already set field discretization int \a this : \a _src_ft and \a _target_ft. - * This method returns 3 informations (2 in ouput parameters and 1 in return). + * This method returns 3 information (2 in output parameters and 1 in return). * * \param [out] srcMeth the string code of the discretization of source field template * \param [out] trgMeth the string code of the discretization of target field template diff --git a/src/MEDCoupling/MEDCouplingStructuredMesh.cxx b/src/MEDCoupling/MEDCouplingStructuredMesh.cxx index 5cbe73d8e..e39a599a4 100644 --- a/src/MEDCoupling/MEDCouplingStructuredMesh.cxx +++ b/src/MEDCoupling/MEDCouplingStructuredMesh.cxx @@ -1956,7 +1956,7 @@ DataArrayInt *MEDCouplingStructuredMesh::BuildExplicitIdsFrom(const std::vector< * \param [in] st - the structure of grid ( \b without considering ghost cells). * \param [in] part - the part in the structure ( \b without considering ghost cells) contained in grid whose structure is defined by \a st. * \param [in] factor - the factor, the tuples in \a da will be multiply by. - * \param [in,out] da - The DataArray in wich only tuples specified by \a part will be modified. + * \param [in,out] da - The DataArray in which only tuples specified by \a part will be modified. * * \sa BuildExplicitIdsFrom */ @@ -2037,7 +2037,7 @@ void MEDCouplingStructuredMesh::MultiplyPartOf(const std::vector& st, const * \param [in] part - the part in the structure ( \b without considering ghost cells) contained in grid whose structure is defined by \a st. * \param [in] ghostSize - \a ghostSize must be >= 0. * \param [in] factor - the factor, the tuples in \a da will be multiply by. - * \param [in,out] da - The DataArray in wich only tuples specified by \a part will be modified. + * \param [in,out] da - The DataArray in which only tuples specified by \a part will be modified. * * \sa MultiplyPartOf, PutInGhostFormat */ diff --git a/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx b/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx index 782018995..5237b17a4 100644 --- a/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx +++ b/src/MEDCoupling/MEDCouplingTimeDiscretization.cxx @@ -374,7 +374,7 @@ void MEDCouplingTimeDiscretization::setSelectedComponents(const MEDCouplingTimeD if(arrays1[i]!=0 && arrays2[i]!=0) arrays1[i]->setSelectedComponents(arrays2[i],compoIds); else if(arrays1[i]!=0 || arrays2[i]!=0) - throw INTERP_KERNEL::Exception("TimeDiscretization::setSelectedComponents : some time array in correspondance are not defined symetrically !"); + throw INTERP_KERNEL::Exception("TimeDiscretization::setSelectedComponents : some time array in correspondance are not defined symmetrically !"); } } diff --git a/src/MEDCoupling/MEDCouplingTimeLabel.cxx b/src/MEDCoupling/MEDCouplingTimeLabel.cxx index 7a9a60383..2ec3a8827 100644 --- a/src/MEDCoupling/MEDCouplingTimeLabel.cxx +++ b/src/MEDCoupling/MEDCouplingTimeLabel.cxx @@ -54,7 +54,7 @@ void TimeLabel::updateTimeWith(const TimeLabel& other) const } /*! - * This method has to be called with a lot of care. It set agressively the time in this with the + * This method has to be called with a lot of care. It set aggressively the time in this with the * time in \a other. */ void TimeLabel::forceTimeOfThis(const TimeLabel& other) const diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index b3f97635b..b19c250b7 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -301,9 +301,10 @@ void MEDCouplingUMesh::setMeshDimension(int meshDim) } /*! - * Allocates memory to store an estimation of the given number of cells. The closer is the estimation to the number of cells effectively inserted, - * the less will the library need to reallocate memory. If the number of cells to be inserted is not known simply put 0 to this parameter. - * If a nodal connectivity previouly existed before the call of this method, it will be reset. + * Allocates memory to store an estimation of the given number of cells. + * The closer the estimation to the number of cells effectively inserted, the less need the library requires + * to reallocate memory. If the number of cells to be inserted is not known simply assign 0 to this parameter. + * If a nodal connectivity previously existed before the call of this method, it will be reset. * * \param [in] nbOfCells - estimation of the number of cell \a this mesh will contain. * @@ -1902,7 +1903,7 @@ MEDCouplingUMesh *MEDCouplingUMesh::mergeMyselfWithOnSameCoords(const MEDCouplin /*! * Build a sub part of \b this lying or not on the same coordinates than \b this (regarding value of \b keepCoords). * By default coordinates are kept. This method is close to MEDCouplingUMesh::buildPartOfMySelf except that here input - * cellIds is not given explicitely but by a range python like. + * cellIds is not given explicitly but by a range python like. * * \param start * \param end @@ -2284,7 +2285,7 @@ MEDCouplingUMesh *MEDCouplingUMesh::buildUnstructured() const * This method expects that \b this and \b otherDimM1OnSameCoords share the same coordinates array. * otherDimM1OnSameCoords->getMeshDimension() is expected to be equal to this->getMeshDimension()-1. * This method searches for nodes needed to be duplicated. These nodes are nodes fetched by \b otherDimM1OnSameCoords which are not part of the boundary of \b otherDimM1OnSameCoords. - * If a node is in the boundary of \b this \b and in the boundary of \b otherDimM1OnSameCoords this node is considerd as needed to be duplicated. + * If a node is in the boundary of \b this \b and in the boundary of \b otherDimM1OnSameCoords this node is considered as needed to be duplicated. * When the set of node ids \b nodeIdsToDuplicate is computed, cell ids in \b this is searched so that their connectivity includes at least 1 node in \b nodeIdsToDuplicate. * * \param [in] otherDimM1OnSameCoords a mesh lying on the same coords than \b this and with a mesh dimension equal to those of \b this minus 1. WARNING this input @@ -2429,7 +2430,7 @@ void MEDCouplingUMesh::findNodesToDuplicate(const MEDCouplingUMesh& otherDimM1On * This method operates a modification of the connectivity and coords in \b this. * Every time that a node id in [ \b nodeIdsToDuplicateBg, \b nodeIdsToDuplicateEnd ) will append in nodal connectivity of \b this * its ids will be modified to id this->getNumberOfNodes()+std::distance(nodeIdsToDuplicateBg,std::find(nodeIdsToDuplicateBg,nodeIdsToDuplicateEnd,id)). - * More explicitely the renumber array in nodes is not explicitely given in old2new to avoid to build a big array of renumbering whereas typically few node ids needs to be + * More explicitly the renumber array in nodes is not explicitly given in old2new to avoid to build a big array of renumbering whereas typically few node ids needs to be * renumbered. The node id nodeIdsToDuplicateBg[0] will have id this->getNumberOfNodes()+0, node id nodeIdsToDuplicateBg[1] will have id this->getNumberOfNodes()+1, * node id nodeIdsToDuplicateBg[2] will have id this->getNumberOfNodes()+2... * @@ -2570,7 +2571,7 @@ void MEDCouplingUMesh::shiftNodeNumbersInConn(int delta) * Coordinates are \b NOT considered here and will remain unchanged by this method. this->_coords can ever been null for the needs of this method. * Every time that a node id in [ \b nodeIdsToDuplicateBg, \b nodeIdsToDuplicateEnd ) will append in nodal connectivity of \b this * its ids will be modified to id offset+std::distance(nodeIdsToDuplicateBg,std::find(nodeIdsToDuplicateBg,nodeIdsToDuplicateEnd,id)). - * More explicitely the renumber array in nodes is not explicitely given in old2new to avoid to build a big array of renumbering whereas typically few node ids needs to be + * More explicitly the renumber array in nodes is not explicitly given in old2new to avoid to build a big array of renumbering whereas typically few node ids needs to be * renumbered. The node id nodeIdsToDuplicateBg[0] will have id offset+0, node id nodeIdsToDuplicateBg[1] will have id offset+1, * node id nodeIdsToDuplicateBg[2] will have id offset+2... * @@ -2941,7 +2942,7 @@ std::string MEDCouplingUMesh::reprConnectivityOfThis() const } /*! - * This method builds a newly allocated instance (with the same name than \a this) that the caller has the responsability to deal with. + * This method builds a newly allocated instance (with the same name than \a this) that the caller has the responsibility to deal with. * This method returns an instance with all arrays allocated (connectivity, connectivity index, coordinates) * but with length of these arrays set to 0. It allows to define an "empty" mesh (with nor cells nor nodes but compliant with * some algos). @@ -3003,7 +3004,7 @@ int MEDCouplingUMesh::getNumberOfNodesInCell(int cellId) const /*! * Returns types of cells of the specified part of \a this mesh. - * This method avoids computing sub-mesh explicitely to get its types. + * This method avoids computing sub-mesh explicitly to get its types. * \param [in] begin - an array of cell ids of interest. * \param [in] end - the end of \a begin, i.e. a pointer to its (last+1)-th element. * \return std::set - a set of enumeration items @@ -3846,7 +3847,7 @@ DataArrayInt *MEDCouplingUMesh::getCellIdsCrossingPlane(const double *origin, co * If not an exception will thrown. If this is an empty mesh with no cell an exception will be thrown too. * No consideration of coordinate is done by this method. * A 1D mesh is said contiguous if : a cell i with nodal connectivity (k,p) the cell i+1 the nodal connectivity should be (p,m) - * If not false is returned. In case that false is returned a call to MEDCoupling::MEDCouplingUMesh::mergeNodes could be usefull. + * If not false is returned. In case that false is returned a call to MEDCoupling::MEDCouplingUMesh::mergeNodes could be useful. */ bool MEDCouplingUMesh::isContiguous1D() const { @@ -5532,7 +5533,7 @@ namespace MEDCouplingImpl * \a this is composed in cell types. * The returned array is of size 3*n where n is the number of different types present in \a this. * For every k in [0,n] ret[3*k+2]==-1 because it has no sense here. - * This parameter is kept only for compatibility with other methode listed above. + * This parameter is kept only for compatibility with other method listed above. */ std::vector MEDCouplingUMesh::getDistributionOfTypes() const { @@ -5577,7 +5578,7 @@ std::vector MEDCouplingUMesh::getDistributionOfTypes() const * * If all geometric types in \a code are exactly those in \a this null pointer is returned. * If it exists a geometric type in \a this \b not in \a code \b no exception is thrown - * and a DataArrayInt instance is returned that the user has the responsability to deallocate. + * and a DataArrayInt instance is returned that the user has the responsibility to deallocate. */ DataArrayInt *MEDCouplingUMesh::checkTypeConsistencyAndContig(const std::vector& code, const std::vector& idsPerType) const { @@ -5888,7 +5889,7 @@ bool MEDCouplingUMesh::checkConsecutiveCellTypesAndOrder(const INTERP_KERNEL::No /*! * This method returns 2 newly allocated DataArrayInt instances. The first is an array of size 'this->getNumberOfCells()' with one component, * that tells for each cell the pos of its type in the array on type given in input parameter. The 2nd output parameter is an array with the same - * number of tuples than input type array and with one component. This 2nd output array gives type by type the number of occurence of type in 'this'. + * number of tuples than input type array and with one component. This 2nd output array gives type by type the number of occurrence of type in 'this'. */ DataArrayInt *MEDCouplingUMesh::getLevArrPerCellTypes(const INTERP_KERNEL::NormalizedCellType *orderBg, const INTERP_KERNEL::NormalizedCellType *orderEnd, DataArrayInt *&nbPerType) const { @@ -6129,7 +6130,7 @@ void MEDCouplingUMesh::convertNodalConnectivityToDynamicGeoTypeMesh(DataArrayInt /*! * This method takes in input a vector of MEDCouplingUMesh instances lying on the same coordinates with same mesh dimensions. * Each mesh in \b ms must be sorted by type with the same order (typically using MEDCouplingUMesh::sortCellsInMEDFileFrmt). - * This method is particulary useful for MED file interaction. It allows to aggregate several meshes and keeping the type sorting + * This method is particularly useful for MED file interaction. It allows to aggregate several meshes and keeping the type sorting * and the track of the permutation by chunk of same geotype cells to retrieve it. The traditional formats old2new and new2old * are not used here to avoid the build of big permutation array. * @@ -6792,7 +6793,7 @@ MEDCouplingUMesh *MEDCouplingUMesh::FuseUMeshesOnSameCoords(const std::vector3DCurve to deduce the intersection of each 3D surf cells * with a plane. The result will be put in 'cut3DSuf' out parameter. - * \param [in] cut3DCurve input paramter that gives for each 3DCurve cell if it owns fully to the plane or partially. + * \param [in] cut3DCurve input parameter that gives for each 3DCurve cell if it owns fully to the plane or partially. * \param [out] nodesOnPlane, returns all the nodes that are on the plane. * \param [in] nodal3DSurf is the nodal connectivity of 3D surf mesh. * \param [in] nodalIndx3DSurf is the nodal connectivity index of 3D surf mesh. @@ -1663,7 +1663,7 @@ void MEDCouplingUMesh::AssemblyForSplitFrom3DCurve(const std::vector& cut3D * This method is part of the Slice3D algorithm. It is the second step of assembly process, ones coordinates have been computed (by MEDCouplingUMesh::split3DCurveWithPlane method). * This method allows to compute given the result of 3D surf cells with plane and the descending connectivity 3D->3DSurf to deduce the intersection of each 3D cells * with a plane. The result will be put in 'nodalRes' 'nodalResIndx' and 'cellIds' out parameters. - * \param cut3DSurf input paramter that gives for each 3DSurf its intersection with plane (result of MEDCouplingUMesh::AssemblyForSplitFrom3DCurve). + * \param cut3DSurf input parameter that gives for each 3DSurf its intersection with plane (result of MEDCouplingUMesh::AssemblyForSplitFrom3DCurve). * \param desc is the descending connectivity 3D->3DSurf * \param descIndx is the descending connectivity index 3D->3DSurf */ diff --git a/src/MEDCoupling/MEDCouplingUMesh_intersection.cxx b/src/MEDCoupling/MEDCouplingUMesh_intersection.cxx index 629ae62b3..b233f1dcb 100644 --- a/src/MEDCoupling/MEDCouplingUMesh_intersection.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh_intersection.cxx @@ -282,7 +282,7 @@ namespace MEDCoupling } /** - * Construct a mapping between set of Nodes and the standart MEDCoupling connectivity format (c, cI). + * Construct a mapping between set of Nodes and the standard MEDCoupling connectivity format (c, cI). */ void MEDCouplingUMeshBuildQPFromMesh3(const double *coo1, int offset1, const double *coo2, int offset2, const std::vector& addCoo, const int *desc1Bg, const int *desc1End, const std::vector >& intesctEdges1, @@ -337,7 +337,7 @@ bool MEDCouplingUMesh::Colinearize2DCell(const double *coords, const int *connBg // This initializes posBaseElt. if(nbOfTurn==0) { - for(unsigned i=1;igetNodalConnectivity()->begin(), mPartCand->getNodalConnectivityIndex()->begin(), idsGoodLine->begin(), idsGoodLine->end(), /*out*/insidePoints, hitSegs); - // Optim: smaller segments completly included in eIdx and not split won't need any further treatment: + // Optim: smaller segments completely included in eIdx and not split won't need any further treatment: for (vector::const_iterator its=hitSegs.begin(); its != hitSegs.end(); ++its) hit[cands2[*its]] = true; diff --git a/src/MEDCoupling_Swig/CMakeLists.txt b/src/MEDCoupling_Swig/CMakeLists.txt index 9aef09af2..02d390480 100644 --- a/src/MEDCoupling_Swig/CMakeLists.txt +++ b/src/MEDCoupling_Swig/CMakeLists.txt @@ -60,7 +60,7 @@ SET (MC_Swig_interf INCLUDE_DIRECTORIES( ${PYTHON_INCLUDE_DIRS} ${NUMPY_INCLUDE_DIR} - ${PTHREAD_INCLUDE_DIR} # pthread dependancy due to python2.7 library + ${PTHREAD_INCLUDE_DIR} # pthread dependency due to python2.7 library ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../MEDCoupling diff --git a/src/MEDCoupling_Swig/MEDCouplingBasicsTest5.py b/src/MEDCoupling_Swig/MEDCouplingBasicsTest5.py index e25b7c7ba..775deb844 100644 --- a/src/MEDCoupling_Swig/MEDCouplingBasicsTest5.py +++ b/src/MEDCoupling_Swig/MEDCouplingBasicsTest5.py @@ -1461,7 +1461,7 @@ class MEDCouplingBasicsTest5(unittest.TestCase): self.assertEqual(f4.getMesh(),None) pass - # test a simple node to cell convertion of a field + # test a simple node to cell conversion of a field def testSwig2NodeToCellDiscretization1(self): f=MEDCouplingFieldDouble(ON_NODES) ; f.setTime(1.1,2,3) a1=DataArrayDouble(4) ; a1.iota() @@ -2122,7 +2122,7 @@ class MEDCouplingBasicsTest5(unittest.TestCase): pass def testSwig2Colinearize2D3(self): - """ colinearize was too agressive, potentially producing cells with one edge """ + """ colinearize was too aggressive, potentially producing cells with one edge """ # Flat polygon with 3 edges - nothing should happen (min number of edges for a linear polyg) coo = DataArrayDouble([0.0,0.0, 2.0,0.0, 1.5,0.0, 1.0,0.0, 0.5,0.0], 5,2) m = MEDCouplingUMesh("m", 2) diff --git a/src/MEDCoupling_Swig/MEDCouplingCommon.i b/src/MEDCoupling_Swig/MEDCouplingCommon.i index 800eed0b1..97a865b11 100644 --- a/src/MEDCoupling_Swig/MEDCouplingCommon.i +++ b/src/MEDCoupling_Swig/MEDCouplingCommon.i @@ -1514,8 +1514,8 @@ namespace MEDCoupling DataArrayDoubleTuple *aa,*aa2; std::vector bb,bb2; int sw; - const char msg[]="Python wrap of MEDCouplingPointSet::findNodesOnLine : 1st paramater for point."; - const char msg2[]="Python wrap of MEDCouplingPointSet::findNodesOnLine : 2nd paramater for vector."; + const char msg[]="Python wrap of MEDCouplingPointSet::findNodesOnLine : 1st parameter for point."; + const char msg2[]="Python wrap of MEDCouplingPointSet::findNodesOnLine : 2nd parameter for vector."; const double *p=convertObjToPossibleCpp5_Safe(pt,sw,val,a,aa,bb,msg,1,spaceDim,true); const double *v=convertObjToPossibleCpp5_Safe(vec,sw,val2,a2,aa2,bb2,msg2,1,spaceDim,true); std::vector nodes; @@ -1533,8 +1533,8 @@ namespace MEDCoupling DataArrayDoubleTuple *aa,*aa2; std::vector bb,bb2; int sw; - const char msg[]="Python wrap of MEDCouplingPointSet::findNodesOnPlane : 1st paramater for point."; - const char msg2[]="Python wrap of MEDCouplingPointSet::findNodesOnPlane : 2nd paramater for vector."; + const char msg[]="Python wrap of MEDCouplingPointSet::findNodesOnPlane : 1st parameter for point."; + const char msg2[]="Python wrap of MEDCouplingPointSet::findNodesOnPlane : 2nd parameter for vector."; const double *p=convertObjToPossibleCpp5_Safe(pt,sw,val,a,aa,bb,msg,1,spaceDim,true); const double *v=convertObjToPossibleCpp5_Safe(vec,sw,val2,a2,aa2,bb2,msg2,1,spaceDim,true); std::vector nodes; @@ -2935,8 +2935,8 @@ namespace MEDCoupling DataArrayDoubleTuple *aa,*aa2; std::vector bb,bb2; int sw; - const char msg[]="Python wrap of MEDCouplingUMesh::buildSlice3D : 1st paramater for origin."; - const char msg2[]="Python wrap of MEDCouplingUMesh::buildSlice3D : 2nd paramater for vector."; + const char msg[]="Python wrap of MEDCouplingUMesh::buildSlice3D : 1st parameter for origin."; + const char msg2[]="Python wrap of MEDCouplingUMesh::buildSlice3D : 2nd parameter for vector."; const double *orig=convertObjToPossibleCpp5_Safe(origin,sw,val,a,aa,bb,msg,1,spaceDim,true); const double *vect=convertObjToPossibleCpp5_Safe(vec,sw,val2,a2,aa2,bb2,msg2,1,spaceDim,true); // @@ -2958,8 +2958,8 @@ namespace MEDCoupling DataArrayDoubleTuple *aa,*aa2; std::vector bb,bb2; int sw; - const char msg[]="Python wrap of MEDCouplingUMesh::buildSlice3DSurf : 1st paramater for origin."; - const char msg2[]="Python wrap of MEDCouplingUMesh::buildSlice3DSurf : 2nd paramater for vector."; + const char msg[]="Python wrap of MEDCouplingUMesh::buildSlice3DSurf : 1st parameter for origin."; + const char msg2[]="Python wrap of MEDCouplingUMesh::buildSlice3DSurf : 2nd parameter for vector."; const double *orig=convertObjToPossibleCpp5_Safe(origin,sw,val,a,aa,bb,msg,1,spaceDim,true); const double *vect=convertObjToPossibleCpp5_Safe(vec,sw,val2,a2,aa2,bb2,msg2,1,spaceDim,true); // @@ -2978,8 +2978,8 @@ namespace MEDCoupling DataArrayDoubleTuple *aa,*aa2; std::vector bb,bb2; int sw; - const char msg[]="Python wrap of MEDCouplingUMesh::clipSingle3DCellByPlane : 1st paramater for origin."; - const char msg2[]="Python wrap of MEDCouplingUMesh::clipSingle3DCellByPlane : 2nd paramater for vector."; + const char msg[]="Python wrap of MEDCouplingUMesh::clipSingle3DCellByPlane : 1st parameter for origin."; + const char msg2[]="Python wrap of MEDCouplingUMesh::clipSingle3DCellByPlane : 2nd parameter for vector."; const double *orig=convertObjToPossibleCpp5_Safe(origin,sw,val,a,aa,bb,msg,1,3,true); const double *vect=convertObjToPossibleCpp5_Safe(vec,sw,val2,a2,aa2,bb2,msg2,1,3,true); MCAuto ret(self->clipSingle3DCellByPlane(orig,vect,eps)); @@ -2996,8 +2996,8 @@ namespace MEDCoupling DataArrayDoubleTuple *aa,*aa2; std::vector bb,bb2; int sw; - const char msg[]="Python wrap of MEDCouplingUMesh::getCellIdsCrossingPlane : 1st paramater for origin."; - const char msg2[]="Python wrap of MEDCouplingUMesh::getCellIdsCrossingPlane : 2nd paramater for vector."; + const char msg[]="Python wrap of MEDCouplingUMesh::getCellIdsCrossingPlane : 1st parameter for origin."; + const char msg2[]="Python wrap of MEDCouplingUMesh::getCellIdsCrossingPlane : 2nd parameter for vector."; const double *orig=convertObjToPossibleCpp5_Safe(origin,sw,val,a,aa,bb,msg,1,spaceDim,true); const double *vect=convertObjToPossibleCpp5_Safe(vec,sw,val2,a2,aa2,bb2,msg2,1,spaceDim,true); return self->getCellIdsCrossingPlane(orig,vect,eps); @@ -4437,8 +4437,8 @@ namespace MEDCoupling std::vector bb,bb2; int sw; int spaceDim=3; - const char msg[]="Python wrap of MEDCouplingFieldDouble::extractSlice3D : 1st paramater for origin."; - const char msg2[]="Python wrap of MEDCouplingFieldDouble::extractSlice3D : 2nd paramater for vector."; + const char msg[]="Python wrap of MEDCouplingFieldDouble::extractSlice3D : 1st parameter for origin."; + const char msg2[]="Python wrap of MEDCouplingFieldDouble::extractSlice3D : 2nd parameter for vector."; const double *orig=convertObjToPossibleCpp5_Safe(origin,sw,val,a,aa,bb,msg,1,spaceDim,true); const double *vect=convertObjToPossibleCpp5_Safe(vec,sw,val2,a2,aa2,bb2,msg2,1,spaceDim,true); // diff --git a/src/MEDCoupling_Swig/MEDCouplingDataArrayTraits.hxx b/src/MEDCoupling_Swig/MEDCouplingDataArrayTraits.hxx index bc3d93680..359bc7ecd 100644 --- a/src/MEDCoupling_Swig/MEDCouplingDataArrayTraits.hxx +++ b/src/MEDCoupling_Swig/MEDCouplingDataArrayTraits.hxx @@ -37,7 +37,7 @@ #ifdef WITH_NUMPY // specific DataArray deallocator callback. This deallocator is used both in the constructor of DataArray and in the toNumPyArr // method. This dellocator uses weakref to determine if the linked numArr is still alive or not. If alive the ownership is given to it. -// if no more alive the "standart" DataArray deallocator is called. +// if no more alive the "standard" DataArray deallocator is called. void numarrdeal(void *pt, void *wron) { void **wronc=(void **)wron; diff --git a/src/MEDCoupling_Swig/MEDCouplingDataArrayTypemaps.i b/src/MEDCoupling_Swig/MEDCouplingDataArrayTypemaps.i index f477160f2..f06995ce7 100644 --- a/src/MEDCoupling_Swig/MEDCouplingDataArrayTypemaps.i +++ b/src/MEDCoupling_Swig/MEDCouplingDataArrayTypemaps.i @@ -50,7 +50,7 @@ static PyObject *convertArray(MEDCoupling::DataArray *array, int owner) } /*! - * This method is an extention of PySlice_GetIndices but less + * This method is an extension of PySlice_GetIndices but less * open than PySlice_GetIndicesEx that accepts too many situations. */ void GetIndicesOfSlice(PyObject *slice, Py_ssize_t length, Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t *step, const char *msgInCaseOfFailure) @@ -2157,7 +2157,7 @@ static const double *convertObjToPossibleCpp5_Safe(PyObject *value, int& sw, dou return e->getConstPointer(); else { - std::ostringstream oss; oss << msg << "nb of tuples expected to be " << nbTuplesExpected << " , and input DataArrayDoubleTuple has always one tuple by contruction !"; + std::ostringstream oss; oss << msg << "nb of tuples expected to be " << nbTuplesExpected << " , and input DataArrayDoubleTuple has always one tuple by construction !"; throw INTERP_KERNEL::Exception(oss.str().c_str()); } } diff --git a/src/MEDCoupling_Swig/MEDCouplingIntersectTest.py b/src/MEDCoupling_Swig/MEDCouplingIntersectTest.py index bd2e09ad5..36a1e5573 100644 --- a/src/MEDCoupling_Swig/MEDCouplingIntersectTest.py +++ b/src/MEDCoupling_Swig/MEDCouplingIntersectTest.py @@ -427,7 +427,7 @@ class MEDCouplingIntersectTest(unittest.TestCase): m1.finishInsertingCells() m2 = MEDCouplingDataForTest.buildCircle(0.25, 0.2, 0.4) - # Was looping indefinitly: + # Was looping indefinitely: m_intersec, resToM1, resToM2 = MEDCouplingUMesh.Intersect2DMeshes(m1, m2, eps) m_intersec.zipCoords() coo_tgt = DataArrayDouble([-0.5, -0.5, -0.5, 0.5, 0.5, 0.5, 0.5, -0.5, -0.03284271247461901, 0.4828427124746191, diff --git a/src/MEDCoupling_Swig/MEDCouplingPickleTest.py b/src/MEDCoupling_Swig/MEDCouplingPickleTest.py index d6135c674..a73bb88ab 100644 --- a/src/MEDCoupling_Swig/MEDCouplingPickleTest.py +++ b/src/MEDCoupling_Swig/MEDCouplingPickleTest.py @@ -84,7 +84,7 @@ class MEDCouplingPickleTest(unittest.TestCase): @unittest.skipUnless(MEDCouplingHasNumPyBindings(),"requires numpy") def test4(self): - """ Idem test3 except that here serialization/deserialization is done explicitely.""" + """ Idem test3 except that here serialization/deserialization is done explicitly.""" arr=DataArrayDouble(10) ; arr.iota() m=MEDCouplingCMesh() ; m.setCoords(arr,arr,arr) m=m.buildUnstructured() diff --git a/src/MEDLoader/MEDFileField.cxx b/src/MEDLoader/MEDFileField.cxx index b03080892..f4c906f8b 100644 --- a/src/MEDLoader/MEDFileField.cxx +++ b/src/MEDLoader/MEDFileField.cxx @@ -379,7 +379,7 @@ void MEDFileFields::unloadArrays() /*! * This method potentially releases big data arrays if \a this is coming from a file. If \a this has been built from scratch this method will have no effect. - * This method is the symetrical method of MEDFileFields::loadArraysIfNecessary. + * This method is the symmetrical method of MEDFileFields::loadArraysIfNecessary. * This method is useful to reduce \b safely amount of heap memory necessary for \a this by using MED file as database. * * \sa MEDFileFields::loadArraysIfNecessary @@ -553,7 +553,7 @@ bool MEDFileFields::changeMeshNames(const std::vector< std::pair& oldCode, const std::vector& newCode, const DataArrayInt *renumO2N) diff --git a/src/MEDLoader/MEDFileField1TS.cxx b/src/MEDLoader/MEDFileField1TS.cxx index 746a5ec75..e8c2c2382 100644 --- a/src/MEDLoader/MEDFileField1TS.cxx +++ b/src/MEDLoader/MEDFileField1TS.cxx @@ -2061,7 +2061,7 @@ int MEDFileAnyTypeField1TS::LocateField(med_idt fid, const std::string& fieldNam * This method as MEDFileField1TSW::setLocNameOnLeaf, is dedicated for advanced user that a want a very fine control on their data structure * without overhead. This method can be called only regarding information returned by MEDFileField1TSWithoutSDA::getFieldSplitedByType or MEDFileField1TSWithoutSDA::getFieldSplitedByType2. * This method changes the attribute (here it's profile name) of the leaf datastructure (MEDFileFieldPerMeshPerTypePerDisc instance). - * It is the responsability of the caller to invoke MEDFileFieldGlobs::appendProfile or MEDFileFieldGlobs::getProfile + * It is the responsibility of the caller to invoke MEDFileFieldGlobs::appendProfile or MEDFileFieldGlobs::getProfile * to keep a valid instance. * If \b this do not have any leaf that correspond to the request of the input parameter (\b mName, \b typ, \b locId) an INTERP_KERNEL::Exception will be thrown. * If \b newPflName profile name does not already exist the profile with old name will be renamed with name \b newPflName. @@ -2098,7 +2098,7 @@ void MEDFileAnyTypeField1TS::setProfileNameOnLeaf(const std::string& mName, INTE * This method as MEDFileField1TSW::setProfileNameOnLeaf, is dedicated for advanced user that a want a very fine control on their data structure * without overhead. This method can be called only regarding information returned by MEDFileField1TSWithoutSDA::getFieldSplitedByType or MEDFileField1TSWithoutSDA::getFieldSplitedByType2. * This method changes the attribute (here it's localization name) of the leaf datastructure (MEDFileFieldPerMeshPerTypePerDisc instance). - * It is the responsability of the caller to invoke MEDFileFieldGlobs::appendProfile or MEDFileFieldGlobs::getProfile + * It is the responsibility of the caller to invoke MEDFileFieldGlobs::appendProfile or MEDFileFieldGlobs::getProfile * to keep a valid instance. * If \b this do not have any leaf that correspond to the request of the input parameter (\b mName, \b typ, \b locId) an INTERP_KERNEL::Exception will be thrown. * This method is an extension of MEDFileField1TSWithoutSDA::setProfileNameOnLeafExt method because it performs a modification of global info. @@ -2194,7 +2194,7 @@ void MEDFileAnyTypeField1TS::unloadArrays() /*! * This method potentially releases big data arrays if \a this is coming from a file. If \a this has been built from scratch this method will have no effect. - * This method is the symetrical method of MEDFileAnyTypeField1TS::loadArraysIfNecessary. + * This method is the symmetrical method of MEDFileAnyTypeField1TS::loadArraysIfNecessary. * This method is useful to reduce \b safely amount of heap memory necessary for \a this by using MED file as database. * * \sa MEDFileAnyTypeField1TS::loadArraysIfNecessary @@ -2453,8 +2453,8 @@ std::vector< std::vector > > MEDFileAnyTypeField1TS::getField /*! * This method returns as MEDFileAnyTypeField1TS new instances as number of components in \a this. - * The returned instances are deep copy of \a this except that for globals that are share with those contained in \a this. - * ** WARNING ** do no forget to rename the ouput instances to avoid to write n-times in the same MED file field ! + * The returned instances are deep copy of \a this except that for globals that are shared with those contained in \a this. + * ** WARNING ** do no forget to rename the output instances to avoid to write n-times in the same MED file field ! */ std::vector< MCAuto< MEDFileAnyTypeField1TS > > MEDFileAnyTypeField1TS::splitComponents() const { @@ -2474,7 +2474,7 @@ std::vector< MCAuto< MEDFileAnyTypeField1TS > > MEDFileAnyTypeField1TS::splitCom /*! * This method returns as MEDFileAnyTypeField1TS new instances as number of spatial discretizations in \a this. - * The returned instances are shallowed copied of \a this except that for globals that are share with those contained in \a this. + * The returned instances are shallowed copied of \a this except that for globals that are shared with those contained in \a this. */ std::vector< MCAuto< MEDFileAnyTypeField1TS > > MEDFileAnyTypeField1TS::splitDiscretizations() const { @@ -2494,7 +2494,7 @@ std::vector< MCAuto< MEDFileAnyTypeField1TS > > MEDFileAnyTypeField1TS::splitDis /*! * This method returns as MEDFileAnyTypeField1TS new instances as number of maximal number of discretization in \a this. - * The returned instances are shallowed copied of \a this except that for globals that are share with those contained in \a this. + * The returned instances are shallowed copied of \a this except that for globals that are shared with those contained in \a this. */ std::vector< MCAuto< MEDFileAnyTypeField1TS > > MEDFileAnyTypeField1TS::splitMultiDiscrPerGeoTypes() const { diff --git a/src/MEDLoader/MEDFileFieldInternal.cxx b/src/MEDLoader/MEDFileFieldInternal.cxx index 22c3beae7..6df10f498 100644 --- a/src/MEDLoader/MEDFileFieldInternal.cxx +++ b/src/MEDLoader/MEDFileFieldInternal.cxx @@ -365,7 +365,7 @@ void MEDFileFieldPerMeshPerTypePerDisc::assignFieldNoProfile(int& start, int off } /*! - * Leaf method of field with profile assignement. This method is the most general one. No optimization is done here. + * Leaf method of field with profile assignment. This method is the most general one. No optimization is done here. * \param [in] pflName input containing name of profile if any. 0 if no profile (except for GAUSS_PT where a no profile can hide a profile when splitted by loc_id). * \param [in] multiTypePfl is the end user profile specified in high level API * \param [in] idsInPfl is the selection into the \a multiTypePfl whole profile that corresponds to the current geometric type. @@ -676,7 +676,7 @@ void MEDFileFieldPerMeshPerTypePerDisc::loadOnlyStructureOfDataRecursively(med_i start=_end; if(type==ON_CELLS && !_localization.empty()) { - if(_localization!="MED_GAUSS_ELNO")//For compatibily with MED2.3 + if(_localization!="MED_GAUSS_ELNO")//For compatibility with MED2.3 setType(ON_GAUSS_PT); else { @@ -1024,7 +1024,7 @@ std::vector< std::vector< const MEDFileFieldPerMeshPerTypePerDisc *> > MEDFileFi /*! * - \c this->_loc_id mutable attribute is used for elt id in mesh offsets. * - * \param [in] offset the offset id used to take into account that \a result is not compulsary empty in input + * \param [in] offset the offset id used to take into account that \a result is not compulsory empty in input * \param [in] entriesOnSameDisc some entries **on same localization** if not the result can be invalid. The _start and _end on them are relative to \a arr parameter. * \param [in] explicitIdsInMesh ids in mesh of the considered chunk. * \param [in] newCode one of the input parameter to explicit the new geo type dispatch (in classical format same than those asked by MEDFileFields::renumberEntitiesLyingOnMesh) @@ -2734,7 +2734,7 @@ MEDFileFieldPerMeshPerTypePerDisc *MEDFileFieldPerMesh::getLeafGivenTypeAndLocId } const INTERP_KERNEL::CellModel& cm=INTERP_KERNEL::CellModel::GetCellModel(typ); std::ostringstream oss; oss << "MEDFileFieldPerMesh::getLeafGivenTypeAndLocId : no such geometric type \"" << cm.getRepr() << "\" in this !" << std::endl; - oss << "Possiblities are : "; + oss << "Possibilities are : "; for(std::vector< MCAuto< MEDFileFieldPerMeshPerTypeCommon > >::const_iterator it=_field_pm_pt.begin();it!=_field_pm_pt.end();it++) { const INTERP_KERNEL::CellModel& cm2=INTERP_KERNEL::CellModel::GetCellModel((*it)->getGeoType()); @@ -2752,7 +2752,7 @@ const MEDFileFieldPerMeshPerTypePerDisc *MEDFileFieldPerMesh::getLeafGivenTypeAn } const INTERP_KERNEL::CellModel& cm=INTERP_KERNEL::CellModel::GetCellModel(typ); std::ostringstream oss; oss << "MEDFileFieldPerMesh::getLeafGivenTypeAndLocId : no such geometric type \"" << cm.getRepr() << "\" in this !" << std::endl; - oss << "Possiblities are : "; + oss << "Possibilities are : "; for(std::vector< MCAuto< MEDFileFieldPerMeshPerTypeCommon > >::const_iterator it=_field_pm_pt.begin();it!=_field_pm_pt.end();it++) { const INTERP_KERNEL::CellModel& cm2=INTERP_KERNEL::CellModel::GetCellModel((*it)->getGeoType()); diff --git a/src/MEDLoader/MEDFileFieldInternal.hxx b/src/MEDLoader/MEDFileFieldInternal.hxx index fc2685467..afa3dc9da 100644 --- a/src/MEDLoader/MEDFileFieldInternal.hxx +++ b/src/MEDLoader/MEDFileFieldInternal.hxx @@ -205,7 +205,7 @@ namespace MEDCoupling int _nval; std::string _profile; std::string _localization; - //! only on assignement -3 : ON_NODES, -2 : ON_CELLS, -1 : ON_GAUSS_NE, 0..* : ON_GAUSS_PT + //! only on assignment -3 : ON_NODES, -2 : ON_CELLS, -1 : ON_GAUSS_NE, 0..* : ON_GAUSS_PT mutable int _loc_id; mutable int _profile_it; MCAuto _pd; diff --git a/src/MEDLoader/MEDFileFieldMultiTS.cxx b/src/MEDLoader/MEDFileFieldMultiTS.cxx index 391980a0e..7630fc4c9 100644 --- a/src/MEDLoader/MEDFileFieldMultiTS.cxx +++ b/src/MEDLoader/MEDFileFieldMultiTS.cxx @@ -702,9 +702,9 @@ std::vector< std::pair > MEDFileAnyTypeFieldMultiTSWithoutSDA::getItera * * If 'this' is empty this method will throw an INTERP_KERNEL::Exception. * If there is \b only node fields defined in 'this' -1 is returned and 'levs' output parameter will be empty. In this - * case the caller has to know the underlying mesh it refers to. By defaut it is the level 0 of the corresponding mesh. + * case the caller has to know the underlying mesh it refers to. By default it is the level 0 of the corresponding mesh. * - * This method is usefull to make the link between meshDimension of the underlying mesh in 'this' and the levels on 'this'. + * This method is useful to make the link between meshDimension of the underlying mesh in 'this' and the levels on 'this'. * It is possible (even if it is not common) that the highest level in 'this' were not equal to the meshDimension of the underlying mesh in 'this'. * * Let's consider the typical following case : @@ -885,7 +885,7 @@ std::vector< MCAuto > MEDFileAnyTypeFieldM /*! * This method splits into discretization each time steps in \a this. - * ** WARNING ** the returned instances are not compulsary defined on the same time steps series ! + * ** WARNING ** the returned instances are not compulsory defined on the same time steps series ! */ std::vector< MCAuto > MEDFileAnyTypeFieldMultiTSWithoutSDA::splitDiscretizations() const { @@ -1608,7 +1608,7 @@ void MEDFileAnyTypeFieldMultiTS::unloadArrays() /*! * This method potentially releases big data arrays if \a this is coming from a file. If \a this has been built from scratch this method will have no effect. - * This method is the symetrical method of MEDFileAnyTypeFieldMultiTS::loadArraysIfNecessary. + * This method is the symmetrical method of MEDFileAnyTypeFieldMultiTS::loadArraysIfNecessary. * This method is useful to reduce \b safely amount of heap memory necessary for \a this by using MED file as database. * * \sa MEDFileAnyTypeFieldMultiTS::loadArraysIfNecessary @@ -1641,8 +1641,8 @@ std::vector MEDFileAnyTypeFieldMultiTS::getDirectChildr /*! * This method returns as MEDFileAnyTypeFieldMultiTS new instances as number of components in \a this. - * The returned instances are deep copy of \a this except that for globals that are share with those contained in \a this. - * ** WARNING ** do no forget to rename the ouput instances to avoid to write n-times in the same MED file field ! + * The returned instances are deep copy of \a this except that for globals that are shared with those contained in \a this. + * ** WARNING ** do no forget to rename the output instances to avoid to write n-times in the same MED file field ! */ std::vector< MCAuto< MEDFileAnyTypeFieldMultiTS > > MEDFileAnyTypeFieldMultiTS::splitComponents() const { @@ -1662,7 +1662,7 @@ std::vector< MCAuto< MEDFileAnyTypeFieldMultiTS > > MEDFileAnyTypeFieldMultiTS:: /*! * This method returns as MEDFileAnyTypeFieldMultiTS new instances as number of discretizations over time steps in \a this. - * The returned instances are shallow copied of \a this included globals that are share with those contained in \a this. + * The returned instances are shallow copied of \a this included globals that are shared with those contained in \a this. */ std::vector< MCAuto< MEDFileAnyTypeFieldMultiTS > > MEDFileAnyTypeFieldMultiTS::splitDiscretizations() const { @@ -1682,7 +1682,7 @@ std::vector< MCAuto< MEDFileAnyTypeFieldMultiTS > > MEDFileAnyTypeFieldMultiTS:: /*! * This method returns as MEDFileAnyTypeFieldMultiTS new instances as number of sub-discretizations over time steps in \a this. - * The returned instances are shallow copied of \a this included globals that are share with those contained in \a this. + * The returned instances are shallow copied of \a this included globals that are shared with those contained in \a this. */ std::vector< MCAuto< MEDFileAnyTypeFieldMultiTS > > MEDFileAnyTypeFieldMultiTS::splitMultiDiscrPerGeoTypes() const { diff --git a/src/MEDLoader/MEDFileFieldOverView.cxx b/src/MEDLoader/MEDFileFieldOverView.cxx index 4ab8737bf..7be3fb7c1 100644 --- a/src/MEDLoader/MEDFileFieldOverView.cxx +++ b/src/MEDLoader/MEDFileFieldOverView.cxx @@ -1680,7 +1680,7 @@ const DataArrayInt *MEDFileField1TSStructItem2::getPfl(const MEDFileFieldGlobsRe } /*! - * \param [in] nbOfEntity - number of entity that can be either cells or nodes. Not other possiblity. + * \param [in] nbOfEntity - number of entity that can be either cells or nodes. Not other possibility. * \param [in] nip - number of integration points. 1 for ON_CELLS and NO_NODES */ void MEDFileField1TSStructItem2::checkInRange(int nbOfEntity, int nip, const MEDFileFieldGlobsReal *globs) diff --git a/src/MEDLoader/MEDFileMesh.cxx b/src/MEDLoader/MEDFileMesh.cxx index 35babc642..38ff81132 100644 --- a/src/MEDLoader/MEDFileMesh.cxx +++ b/src/MEDLoader/MEDFileMesh.cxx @@ -795,7 +795,7 @@ void MEDFileMesh::removeFamiliesReferedByNoGroups() } /*! - * This method has no impact on groups. This method only works on families. This method firstly removes families not refered by any groups in \a this, then all unused entities + * This method has no impact on groups. This method only works on families. This method firstly removes families not referred by any groups in \a this, then all unused entities * are put as belonging to family 0 ("FAMILLE_ZERO"). Finally, all orphanFamilies are killed. * This method raises an exception if "FAMILLE_ZERO" is already belonging to a group. * @@ -2282,7 +2282,7 @@ MEDFileUMesh *MEDFileUMesh::New(med_idt fid, MEDFileMeshReadSelector *mrs) } /*! - * \b WARNING this implementation is dependant from MEDCouplingMappedExtrudedMesh::buildUnstructured ! + * \b WARNING this implementation is dependent from MEDCouplingMappedExtrudedMesh::buildUnstructured ! * \sa MEDCouplingMappedExtrudedMesh::buildUnstructured , MEDCouplingMappedExtrudedMesh::build3DUnstructuredMesh */ MEDFileUMesh *MEDFileUMesh::New(const MEDCouplingMappedExtrudedMesh *mem) @@ -2776,7 +2776,7 @@ void MEDFileMesh::checkCartesian() const if(getAxisType()!=AX_CART) { std::ostringstream oss; oss << "MEDFileMesh::checkCartesian : request for method that is dedicated to a cartesian convention ! But you are not in cartesian convention (" << DataArray::GetAxisTypeRepr(getAxisType()) << ")."; - oss << std::endl << "To perform operation you have two possiblities :" << std::endl; + oss << std::endl << "To perform operation you have two possibilities :" << std::endl; oss << " - call setAxisType(AX_CART)" << std::endl; oss << " - call cartesianize()"; throw INTERP_KERNEL::Exception(oss.str().c_str()); @@ -3635,7 +3635,7 @@ MEDCouplingUMesh *MEDFileUMesh::getLevelM3Mesh(bool renum) const /*! * This method is for advanced users. There is two storing strategy of mesh in \a this. * Either MEDCouplingUMesh, or vector of MEDCoupling1GTUMesh instances. - * When assignement is done the first one is done, which is not optimal in write mode for MED file. + * When assignment is done the first one is done, which is not optimal in write mode for MED file. * This method allows to switch from MEDCouplingUMesh mode to MEDCoupling1GTUMesh mode. */ void MEDFileUMesh::forceComputationOfParts() const @@ -6095,7 +6095,7 @@ void MEDFileStructuredMesh::deepCpyAttributes() } /*! - * Returns a pointer to mesh at the specified level (here 0 is compulsary for cartesian mesh). + * Returns a pointer to mesh at the specified level (here 0 is compulsory for cartesian mesh). * * \return a pointer to cartesian mesh that need to be managed by the caller. * \warning the returned pointer has to be managed by the caller. diff --git a/src/MEDLoader/MEDFileMeshLL.cxx b/src/MEDLoader/MEDFileMeshLL.cxx index 499d7ccbb..1fafaf6a6 100644 --- a/src/MEDLoader/MEDFileMeshLL.cxx +++ b/src/MEDLoader/MEDFileMeshLL.cxx @@ -354,7 +354,7 @@ void MEDFileMeshL2::RenameFamiliesPatternInternal(std::vector< std::pair > > >& crudeFams) { @@ -387,7 +387,7 @@ bool MEDFileMeshL2::RenameFamiliesFromFileToMem(std::vector< std::string >& famN /*! * This method is dedicated to the killers that use a same family name to store different family ids. MED file API authorizes it. - * So this method renames families (if needed generaly not !) in order to have a discriminant name for families. + * So this method renames families (if needed generally not !) in order to have a discriminant name for families. */ void MEDFileMeshL2::RenameFamiliesFromMemToFileInternal(std::vector< std::pair > > >& crudeFams) { diff --git a/src/MEDLoader/MEDLoader.cxx b/src/MEDLoader/MEDLoader.cxx index eadf569a7..3ff93db37 100644 --- a/src/MEDLoader/MEDLoader.cxx +++ b/src/MEDLoader/MEDLoader.cxx @@ -346,7 +346,7 @@ void MEDCoupling::MEDFileVersion(int& major, int& minor, int& release) } /*! - * This method sets the epsilon value used for node comparison when trying to buid a profile for a field on node/cell on an already written mesh. + * This method sets the epsilon value used for node comparison when trying to build a profile for a field on node/cell on an already written mesh. */ void MEDCoupling::SetEpsilonForNodeComp(double val) { diff --git a/src/MEDLoader/MEDLoaderBase.cxx b/src/MEDLoader/MEDLoaderBase.cxx index b83d8a84e..b045e773b 100644 --- a/src/MEDLoader/MEDLoaderBase.cxx +++ b/src/MEDLoader/MEDLoaderBase.cxx @@ -130,7 +130,7 @@ void MEDLoaderBase::strip(std::string& s) /*! * This method operates a safe copy from 'src' to 'dest' by checking the size of 'src' before trying to copy. - * If size of 'src' string is higher than 'maxLgth' the behaviour is dependant from 'behaviour' parameter. + * If size of 'src' string is higher than 'maxLgth' the behaviour is dependent from 'behaviour' parameter. * If 'behaviour' equals 0 an exception is thrown. If 'behaviour' equals 1 an attempt of zipping of string will be done * ( see zipString to have more details). */ diff --git a/src/MEDLoader/SauvMedConvertor.cxx b/src/MEDLoader/SauvMedConvertor.cxx index c94ff7387..c2d09d795 100644 --- a/src/MEDLoader/SauvMedConvertor.cxx +++ b/src/MEDLoader/SauvMedConvertor.cxx @@ -1925,7 +1925,7 @@ int ASCIIReader::getInt() const // 53619905 | 1 2 6 8 // 53619906 | SCALAIRE // 53619907 | -63312600499 1 0 0 0 -2 0 2 - // where -63312600499 is actualy -633 and 12600499 + // where -63312600499 is actually -633 and 12600499 char hold=_curPos[_width]; _curPos[_width] = '\0'; int result = atoi( _curPos ); @@ -2311,7 +2311,7 @@ void IntermediateMED::checkDataAvailability() const Group* IntermediateMED::addNewGroup(std::vector* groupsToFix) { - if ( _groups.size() == _groups.capacity() ) // re-allocation would occure + if ( _groups.size() == _groups.capacity() ) // re-allocation would occur { std::vector newGroups( _groups.size() ); newGroups.push_back( Group() ); @@ -3843,7 +3843,7 @@ CellsByDimIterator::CellsByDimIterator( const IntermediateMED & medi, int dimm) init( dimm ); } /*! - * \brief Initialize iteration on cells of given dimention + * \brief Initialize iteration on cells of given dimension */ void CellsByDimIterator::init(const int dimm) { diff --git a/src/MEDLoader/SauvWriter.cxx b/src/MEDLoader/SauvWriter.cxx index a337b1778..c56016ddf 100644 --- a/src/MEDLoader/SauvWriter.cxx +++ b/src/MEDLoader/SauvWriter.cxx @@ -1170,7 +1170,7 @@ void SauvWriter::writeNodalFields(map& fldNamePrefixMap) fcount.stop(); } } - } // loop on fiels + } // loop on files } //================================================================================ diff --git a/src/MEDLoader/Swig/CaseReader.py b/src/MEDLoader/Swig/CaseReader.py index 7a17167d5..cacc7c58b 100644 --- a/src/MEDLoader/Swig/CaseReader.py +++ b/src/MEDLoader/Swig/CaseReader.py @@ -109,7 +109,7 @@ class CaseReader(CaseIO): return m def __convertGeo2MED(self,geoFileName): - """ Convert all the geometry (all the meshes) contained in teh CASE file into MEDCouplingUMesh'es. """ + """ Convert all the geometry (all the meshes) contained in the CASE file into MEDCouplingUMesh'es. """ fd=open(os.path.join(self._dirName,geoFileName),"r+b") ; fd.seek(0,2) ; end=fd.tell() ; fd.seek(0) ; title=fd.read(80) title=title.strip().lower() if "binary" not in title: diff --git a/src/MEDLoader/Swig/ConvertMEDFileTo30.py b/src/MEDLoader/Swig/ConvertMEDFileTo30.py index 3501af902..bda168554 100644 --- a/src/MEDLoader/Swig/ConvertMEDFileTo30.py +++ b/src/MEDLoader/Swig/ConvertMEDFileTo30.py @@ -35,7 +35,7 @@ def ConvertTo30(nameOfMEDFile): # finalVersion=ml.MEDFileVersionOfFileStr(realFnOut) # - print(("File \"%s\" has been converted to 3.0 successfuly ( %s -> %s ) !\nOutput file is here : \"%s\" !"%(fn,initalVersion,finalVersion,realFnOut))) + print(("File \"%s\" has been converted to 3.0 successfully ( %s -> %s ) !\nOutput file is here : \"%s\" !"%(fn,initalVersion,finalVersion,realFnOut))) pass if __name__=="__main__": diff --git a/src/MEDLoader/Swig/MEDLoaderTest3.py b/src/MEDLoader/Swig/MEDLoaderTest3.py index abe85d40c..3d2bb904c 100644 --- a/src/MEDLoader/Swig/MEDLoaderTest3.py +++ b/src/MEDLoader/Swig/MEDLoaderTest3.py @@ -908,7 +908,7 @@ class MEDLoaderTest3(unittest.TestCase): pass # Tricky test of the case of in a MED file containing a Field on GAUSS_NE is lying on a profile that is reality represents all the geom entities of a level. # By default when using setFieldProfile method such profile is not created because it is not useful ! So here a trick is used to force MEDLoader to do that - # for the necessity of the test ! The idea is too create artificially a mesh having one more fictious cell per type and to roll back right after ! + # for the necessity of the test ! The idea is too create artificially a mesh having one more fictitious cell per type and to roll back right after ! def testMEDField15(self): fname="Pyfile36.med" m0=MEDLoaderDataForTest.build2DMesh_1() @@ -3749,7 +3749,7 @@ class MEDLoaderTest3(unittest.TestCase): pass def testMEDFileUMeshSetName(self): - """ This test is a small but important one for MEDReader in sauv mode. When .sauv file is loaded the convertion is performed in memory and a preparation is done then. + """ This test is a small but important one for MEDReader in sauv mode. When .sauv file is loaded the conversion is performed in memory and a preparation is done then. This preparation makes access to internal MEDCouplingMesh pointers whose name must be updated. """ fname="Pyfile79.med" @@ -4867,7 +4867,7 @@ class MEDLoaderTest3(unittest.TestCase): self.assertEqual(mm.getFamiliesIdsOnGroup("RID"),(-4,3)) mm.write(fileName,2) # now read such funny file ! - mm2=MEDFileMesh.New(fileName) # <- normaly mdump of Pyfile98.med must contain only RID and FAMILLE_ZERO families. + mm2=MEDFileMesh.New(fileName) # <- normally mdump of Pyfile98.med must contain only RID and FAMILLE_ZERO families. self.assertTrue(mm.isEqual(mm2,1e-16)) self.assertEqual(mm2.getFamiliesNames(),("FAMILLE_ZERO",'RIDF!/__\\!0000','RIDF!/__\\!0001')) self.assertEqual(mm2.getFamiliesNamesWithFilePointOfView(),("FAMILLE_ZERO","RIDF","RIDF")) diff --git a/src/MEDLoader/Swig/MEDLoaderTest4.py b/src/MEDLoader/Swig/MEDLoaderTest4.py index d8d8a6e1f..41cd6e868 100644 --- a/src/MEDLoader/Swig/MEDLoaderTest4.py +++ b/src/MEDLoader/Swig/MEDLoaderTest4.py @@ -4119,7 +4119,7 @@ class MEDLoaderTest4(unittest.TestCase): pass def test28(self): - """ This test defines 2 fields f0,f1,f2,f3 lying on an unstructured mesh whith cells including NORM_POINT1. + """ This test defines 2 fields f0,f1,f2,f3 lying on an unstructured mesh with cells including NORM_POINT1. Both f0 and f1 are on NODES and f2 and f3 are on cells. f1 and f2 share the same support. f0 is on a nodal support that is not matchable with any cells (including NORM_POINT1) This test is a more aggressive version of test26. @@ -4959,7 +4959,7 @@ class MEDLoaderTest4(unittest.TestCase): pass def test35(self): - """ Emulate MEDReader in // mode context. Here a Simple mesh having more nodes than really needed. This test focuses on that point particulary.""" + """ Emulate MEDReader in // mode context. Here a Simple mesh having more nodes than really needed. This test focuses on that point particularly.""" fname="ForMEDReader35.med" arrX=DataArrayDouble(7) ; arrX.iota() arrY=DataArrayDouble([0.,1.]) diff --git a/src/MEDLoader/Swig/case2med b/src/MEDLoader/Swig/case2med index a0b543bca..9dd448501 100755 --- a/src/MEDLoader/Swig/case2med +++ b/src/MEDLoader/Swig/case2med @@ -46,7 +46,7 @@ cr=CaseReader(fname) try: medfd=cr.loadInMEDFileDS() except: - print "An error occured during the conversion!" + print "An error occurred during the conversion!" print "#######################################" raise medfd.write(fOut,2) diff --git a/src/MEDPartitioner/MEDPARTITIONER_MeshCollection.cxx b/src/MEDPartitioner/MEDPARTITIONER_MeshCollection.cxx index 1fb3771c0..061bea001 100644 --- a/src/MEDPartitioner/MEDPARTITIONER_MeshCollection.cxx +++ b/src/MEDPartitioner/MEDPARTITIONER_MeshCollection.cxx @@ -1768,7 +1768,7 @@ MEDPARTITIONER::MeshCollection::~MeshCollection() * * The method creates as many MED-files as there are domains in the * collection. It also creates a master file that lists all the MED files. - * The MED files created in ths manner contain joints that describe the + * The MED files created in this manner contain joints that describe the * connectivity between subdomains. * * \param filename name of the master file that will contain the list of the MED files diff --git a/src/MEDPartitioner/MEDPARTITIONER_PTScotchGraph.cxx b/src/MEDPartitioner/MEDPARTITIONER_PTScotchGraph.cxx index 056701fcd..e06fb8599 100644 --- a/src/MEDPartitioner/MEDPARTITIONER_PTScotchGraph.cxx +++ b/src/MEDPartitioner/MEDPARTITIONER_PTScotchGraph.cxx @@ -80,7 +80,7 @@ void PTSCOTCHGraph::partGraph(int ndomain, const std::string& options_string, Pa xadj[n], // edgelocnbr , number of edges xadj[n], // edgelocsiz , same as edgelocnbr if edgeloctab is compact adjncy, // edgeloctab[edgelocnbr], global indexes of edges - 0, // edgegsttab , optionnal, should be computed internally, set to zero + 0, // edgegsttab , optional, should be computed internally, set to zero _edge_weight); // edloloctab , graph edges loads, set to zero SCOTCH_Strat scotch_strategy; diff --git a/src/MEDPartitioner/MEDPARTITIONER_Utils.hxx b/src/MEDPartitioner/MEDPARTITIONER_Utils.hxx index b50c9dadd..d69d10fe6 100644 --- a/src/MEDPartitioner/MEDPARTITIONER_Utils.hxx +++ b/src/MEDPartitioner/MEDPARTITIONER_Utils.hxx @@ -89,7 +89,7 @@ namespace MEDPARTITIONER std::vector GetInfosOfField(const char *fileName, const char *meshName, const int idomain ); #ifdef HAVE_MPI - //not adviced, interblocking, use sendAndReceive + //not advised, interblocking, use sendAndReceive //void SendVectorOfString(const std::vector& vec, const int target); //std::vector RecvVectorOfString(const int source); //TODO void sendRecvVectorOfString(const std::vector& vec, const int source, const int target); diff --git a/src/MEDPartitioner/medpartitioner.cxx b/src/MEDPartitioner/medpartitioner.cxx index de188190c..7df608ef9 100644 --- a/src/MEDPartitioner/medpartitioner.cxx +++ b/src/MEDPartitioner/medpartitioner.cxx @@ -302,7 +302,7 @@ int main(int argc, char** argv) } catch(...) { - cerr<<"an unknown type exception error was occured"<containsMyRank()) { ElementLocator locator(*_local_field, *_source_group, *_target_group); - //transfering option from InterpKernelDEC to ElementLocator + //transferring option from InterpKernelDEC to ElementLocator locator.copyOptions(*this); MEDCouplingPointSet* distant_mesh=0; int* distant_ids=0; diff --git a/src/ParaMEDMEM/MPIAccess.cxx b/src/ParaMEDMEM/MPIAccess.cxx index 65e903676..1bb3dcf8a 100644 --- a/src/ParaMEDMEM/MPIAccess.cxx +++ b/src/ParaMEDMEM/MPIAccess.cxx @@ -170,7 +170,7 @@ namespace MEDCoupling "_MapOfRequestStruct". That structure RequestStruct give the possibility to manage the structures MPI_Request and MPI_Status * of MPI. It give - also the possibility to get informations about that request : + also the possibility to get information about that request : target, send/recv, tag, [a]synchronous, type, outcount. . That identifier is used to control an asynchronous request @@ -391,7 +391,7 @@ namespace MEDCoupling // Receive (read) in synchronous mode count values of type datatype in buffer from source // (returns RequestId identifier even if the corresponding structure is deleted : // it is only in order to have the same signature as the asynchronous mode) - // The output argument OutCount is optionnal : *OutCount <= count + // The output argument OutCount is optional : *OutCount <= count int MPIAccess::recv(void* buffer, int count, MPI_Datatype datatype, int source, int &RequestId, int *OutCount) { int sts = MPI_SUCCESS ; @@ -1003,7 +1003,7 @@ namespace MEDCoupling return _comm_interface.requestFree( request ) ; } - // Print all informations of all known requests for debugging purpose + // Print all information of all known requests for debugging purpose void MPIAccess::check() const { int i = 0 ; diff --git a/src/ParaMEDMEM/MPIAccessDEC.cxx b/src/ParaMEDMEM/MPIAccessDEC.cxx index ebbf4bb06..ede50109c 100644 --- a/src/ParaMEDMEM/MPIAccessDEC.cxx +++ b/src/ParaMEDMEM/MPIAccessDEC.cxx @@ -441,7 +441,7 @@ namespace MEDCoupling . We assume that buffers are allocated with a new double[]. so a delete [] is done. - . The structure SendBuffStruct permit to keep the adress of the buffer + . The structure SendBuffStruct permit to keep the address of the buffer and to manage a reference counter of that buffer. It contains also MPI_Datatype for the delete [] (double *) ... when the counter is null. diff --git a/src/ParaMEDMEM/NonCoincidentDEC.cxx b/src/ParaMEDMEM/NonCoincidentDEC.cxx index cb04b2ee8..cd0184267 100644 --- a/src/ParaMEDMEM/NonCoincidentDEC.cxx +++ b/src/ParaMEDMEM/NonCoincidentDEC.cxx @@ -372,7 +372,7 @@ namespace MEDCoupling int nbcomp = _local_field->getField()->getNumberOfComponents(); double* distant_values = new double [_nb_distant_points*nbcomp]; - //cheap interpolation : the value of the cell is transfered to the point + //cheap interpolation : the value of the cell is transferred to the point for (int i=0; i<_nb_distant_points; i++) for (int j=0; j _field lies, its global number, if this->_field is nodal. * For example if _field is a nodal field : returned array will be the nodal global numbers. - * The content of this method is used to inform Working side to accumulate data recieved by lazy side. + * The content of this method is used to inform Working side to accumulate data received by lazy side. */ DataArrayInt* ParaFIELD::returnCumulativeGlobalNumbering() const { diff --git a/src/ParaMEDMEMTest/ParaMEDMEMTestMPI2_1.cxx b/src/ParaMEDMEMTest/ParaMEDMEMTestMPI2_1.cxx index b282c94bf..23b298606 100644 --- a/src/ParaMEDMEMTest/ParaMEDMEMTestMPI2_1.cxx +++ b/src/ParaMEDMEMTest/ParaMEDMEMTestMPI2_1.cxx @@ -63,7 +63,7 @@ void MPI2ParaMEDMEMTest::testBasicMPI2_1() return; } - /* Connection to remote programm */ + /* Connection to remote program */ MPI2Connector *mpio = new MPI2Connector; gcom = mpio->remoteMPI2Connect(service); MPI_Comm_size( gcom, &gsize ); @@ -108,7 +108,7 @@ void MPI2ParaMEDMEMTest::testBasicMPI2_1() dec.synchronize(); dec.setForcedRenormalization(false); dec.sendData(); - /* Deconnection of remote programm */ + /* Deconnection of remote program */ mpio->remoteMPI2Disconnect(service); /* clean-up */ delete mpio; diff --git a/src/ParaMEDMEMTest/ParaMEDMEMTestMPI2_2.cxx b/src/ParaMEDMEMTest/ParaMEDMEMTestMPI2_2.cxx index dead3bf94..acc358814 100644 --- a/src/ParaMEDMEMTest/ParaMEDMEMTestMPI2_2.cxx +++ b/src/ParaMEDMEMTest/ParaMEDMEMTestMPI2_2.cxx @@ -63,7 +63,7 @@ void MPI2ParaMEDMEMTest::testBasicMPI2_1() return; } - /* Connection to remote programm */ + /* Connection to remote program */ MPI2Connector *mpio = new MPI2Connector; gcom = mpio->remoteMPI2Connect(service); @@ -113,7 +113,7 @@ void MPI2ParaMEDMEMTest::testBasicMPI2_1() const double *expected=targetResults[grank-(gsize-lsize)]; CPPUNIT_ASSERT_DOUBLES_EQUAL(expected[0],res[0],1e-13); CPPUNIT_ASSERT_DOUBLES_EQUAL(expected[1],res[1],1e-13); - /* Deconnection of remote programm */ + /* Deconnection of remote program */ mpio->remoteMPI2Disconnect(service); /* clean-up */ delete mpio; diff --git a/src/ParaMEDMEM_Swig/ParaMEDMEM.i b/src/ParaMEDMEM_Swig/ParaMEDMEM.i index 62478273b..a1168109f 100644 --- a/src/ParaMEDMEM_Swig/ParaMEDMEM.i +++ b/src/ParaMEDMEM_Swig/ParaMEDMEM.i @@ -234,7 +234,7 @@ int MPI_Finalize(); delete [] intBuf; delete [] dblBuf; return NULL; } - // put recieved data into the list + // put received data into the list int pyerr = 0; if ( type == MPI_DOUBLE ) { diff --git a/src/RENUMBER_Swig/CMakeLists.txt b/src/RENUMBER_Swig/CMakeLists.txt index 8bdb4a46b..23aa43158 100644 --- a/src/RENUMBER_Swig/CMakeLists.txt +++ b/src/RENUMBER_Swig/CMakeLists.txt @@ -42,7 +42,7 @@ SET (MEDRenumber_SWIG_DPYS_FILES INCLUDE_DIRECTORIES( ${PYTHON_INCLUDE_DIRS} - ${PTHREAD_INCLUDE_DIR} # pthread dependancy due to python2.7 library + ${PTHREAD_INCLUDE_DIR} # pthread dependency due to python2.7 library ${CMAKE_CURRENT_SOURCE_DIR} ${NUMPY_INCLUDE_DIR} ${CMAKE_CURRENT_BINARY_DIR}