Changeset 14904


Ignore:
Timestamp:
05/05/13 10:12:40 (12 years ago)
Author:
Eric.Larour
Message:

CHG: merged xMemCpy and alloc.h into MemOps.h in the src/c/shared/MemOps/MemOps include file. Easier
to track down, and makes more sense.

Location:
issm/trunk-jpl/src/c
Files:
2 deleted
26 edited
1 copied

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/Makefile.am

    r14897 r14904  
    181181                                        ./Container/Vertices.cpp\
    182182                                        ./shared/shared.h\
    183                                         ./shared/Alloc/alloc.h\
    184                                         ./shared/MemOps/xMemCpy.h\
     183                                        ./shared/MemOps/MemOps.h\
    185184                                        ./shared/Matrix/matrix.h\
    186185                                        ./shared/Matrix/MatrixUtils.cpp\
  • issm/trunk-jpl/src/c/classes/ToolkitOptions.cpp

    r14822 r14904  
    1414#include "../include/macros.h"
    1515#include "../shared/Exceptions/exceptions.h"
    16 #include "../shared/Alloc/alloc.h"
     16#include "../shared/MemOps/MemOps.h"
    1717
    1818void ToolkitOptions::Init(char* options){ /*{{{*/
  • issm/trunk-jpl/src/c/classes/objects/Bucket.h

    r14875 r14904  
    99/*{{{*/
    1010#include "./Object.h"
    11 #include "../../shared/Alloc/alloc.h"
     11#include "../../shared/MemOps/MemOps.h"
    1212#include "../../include/macros.h"
    1313#include "../../Container/DataSet.h"
  • issm/trunk-jpl/src/c/classes/objects/Contour.h

    r14894 r14904  
    1010#include "../../include/include.h"
    1111#include "../../shared/Exceptions/exceptions.h"
    12 #include "../../shared/Alloc/alloc.h"
    13 #include "../../shared/MemOps/xMemCpy.h"
     12#include "../../shared/MemOps/MemOps.h"
    1413#include "../../io/io.h"
    1514#include "../../EnumDefinitions/EnumDefinitions.h"
  • issm/trunk-jpl/src/c/classes/objects/Options/GenericOption.h

    r14678 r14904  
    1717#include "../../../include/include.h"
    1818#include "../../../shared/Exceptions/exceptions.h"
    19 #include "../../../shared/Alloc/alloc.h"
    20 #include "../../../shared/MemOps/xMemCpy.h"
     19#include "../../../shared/MemOps/MemOps.h"
    2120#include "../../../io/io.h"
    2221#include "../../../EnumDefinitions/EnumDefinitions.h"
  • issm/trunk-jpl/src/c/shared/Exceptions/exprintf.cpp

    r14894 r14904  
    88#include <stdarg.h>
    99#include <stdio.h>
    10 #include "../Alloc/alloc.h"
     10#include "../MemOps/MemOps.h"
    1111
    1212char* exprintf(const char* format,...){
  • issm/trunk-jpl/src/c/shared/Exp/ExpWrite.cpp

    r14293 r14904  
    55 */
    66#include <stdio.h>
    7 #include "../Alloc/alloc.h"
     7#include "../MemOps/MemOps.h"
    88#include "../../include/include.h"
    99#include "../Exceptions/exceptions.h"
  • issm/trunk-jpl/src/c/shared/Matrix/MatrixUtils.cpp

    r13142 r14904  
    77#include "./matrix.h"
    88#include "../Exceptions/exceptions.h"
    9 #include "../Alloc/alloc.h"
     9#include "../MemOps/MemOps.h"
    1010#include <stdio.h>
    1111#include <sys/types.h>
  • issm/trunk-jpl/src/c/shared/MemOps/MemOps.h

    r14902 r14904  
    135135#endif
    136136}/*}}}*/
     137template <class T>  T* xMemCpy(T* dest, const T* src, unsigned int size) {/*{{{*/
     138  assert(dest); assert(src);
     139  for (int i=0; i<size;++i)
     140    dest[i]=src[i];
     141  return dest;
     142};
     143/*}}}*/
     144
    137145
    138146#endif
  • issm/trunk-jpl/src/c/shared/Numerics/GaussPoints.cpp

    r14393 r14904  
    33#include "../../include/include.h"
    44#include "./GaussPoints.h"
    5 #include "../Alloc/alloc.h"
     5#include "../MemOps/MemOps.h"
    66#include "../Exceptions/exceptions.h"
    77#include <math.h>
  • issm/trunk-jpl/src/c/shared/Numerics/XZvectorsToCoordinateSystem.cpp

    r13758 r14904  
    1 #include "../Alloc/alloc.h"
     1#include "../MemOps/MemOps.h"
    22#include "../../include/include.h"
    33#include "../Exceptions/exceptions.h"
  • issm/trunk-jpl/src/c/shared/Threads/LaunchThread.cpp

    r14894 r14904  
    2020
    2121#include "./issm_threads.h"
    22 #include "../Alloc/alloc.h"
     22#include "../MemOps/MemOps.h"
    2323#include "../Exceptions/exceptions.h"
    2424#include "../../include/include.h"
  • issm/trunk-jpl/src/c/shared/TriMesh/SplitMeshForRifts.cpp

    r14894 r14904  
    33 */
    44#include "./trimesh.h"
    5 #include "../Alloc/alloc.h"
     5#include "../MemOps/MemOps.h"
    66
    77int SplitMeshForRifts(int* pnel,int** pindex,int* pnods,double** px,double** py,int* pnsegs,int** psegments,int** psegmentmarkerlist){
  • issm/trunk-jpl/src/c/shared/TriMesh/TriMeshUtils.cpp

    r14894 r14904  
    77#include "./trimesh.h"
    88#include "../Exceptions/exceptions.h"
    9 #include "../Alloc/alloc.h"
     9#include "../MemOps/MemOps.h"
    1010#include "../../include/include.h"
    1111
  • issm/trunk-jpl/src/c/shared/shared.h

    r14894 r14904  
    66#define _SHARED_H_
    77
    8 #include "./Alloc/alloc.h"
     8#include "./MemOps/MemOps.h"
    99#include "./Bamg/shared.h"
    1010#include "./Elements/elements.h"
     
    1212#include "./Exp/exp.h"
    1313#include "./Matrix/matrix.h"
    14 #include "./MemOps/xMemCpy.h"
    1514#include "./Numerics/numerics.h"
    1615#include "./Sorting/sorting.h"
  • issm/trunk-jpl/src/c/toolkits/issm/IssmAbsMat.h

    r14888 r14904  
    2020
    2121#include "../../shared/Exceptions/exceptions.h"
    22 #include "../../shared/MemOps/xMemCpy.h"
    23 #include "../../shared/Alloc/alloc.h"
     22#include "../../shared/MemOps/MemOps.h"
    2423#include "../../include/macros.h"
    2524#include "./IssmAbsVec.h"
  • issm/trunk-jpl/src/c/toolkits/issm/IssmAbsVec.h

    r14822 r14904  
    2020
    2121#include "../../shared/Exceptions/exceptions.h"
    22 #include "../../shared/MemOps/xMemCpy.h"
    23 #include "../../shared/Alloc/alloc.h"
     22#include "../../shared/MemOps/MemOps.h"
    2423#include "../../include/macros.h"
    2524#include <math.h>
  • issm/trunk-jpl/src/c/toolkits/issm/IssmDenseMat.h

    r14888 r14904  
    1919#include "./IssmSeqVec.h"
    2020#include "../../shared/Exceptions/exceptions.h"
    21 #include "../../shared/MemOps/xMemCpy.h"
    22 #include "../../shared/Alloc/alloc.h"
     21#include "../../shared/MemOps/MemOps.h"
    2322#include "../../include/macros.h"
    2423#include "../../toolkits/gsl/gslincludes.h"
  • issm/trunk-jpl/src/c/toolkits/issm/IssmMat.h

    r14897 r14904  
    1515
    1616#include "../../shared/Exceptions/exceptions.h"
    17 #include "../../shared/MemOps/xMemCpy.h"
    18 #include "../../shared/Alloc/alloc.h"
     17#include "../../shared/MemOps/MemOps.h"
    1918#include "../../include/macros.h"
    2019#include "../../classes/ToolkitOptions.h"
  • issm/trunk-jpl/src/c/toolkits/issm/IssmMpiDenseMat.h

    r14897 r14904  
    1919
    2020#include "../../shared/Exceptions/exceptions.h"
    21 #include "../../shared/MemOps/xMemCpy.h"
    22 #include "../../shared/Alloc/alloc.h"
     21#include "../../shared/MemOps/MemOps.h"
    2322#include "../../include/macros.h"
    2423#include "../../Container/DataSet.h"
  • issm/trunk-jpl/src/c/toolkits/issm/IssmMpiVec.h

    r14878 r14904  
    1919
    2020#include "../../shared/Exceptions/exceptions.h"
    21 #include "../../shared/MemOps/xMemCpy.h"
    22 #include "../../shared/Alloc/alloc.h"
     21#include "../../shared/MemOps/MemOps.h"
    2322#include "../../include/macros.h"
    2423#include "../../io/io.h"
  • issm/trunk-jpl/src/c/toolkits/issm/IssmSeqVec.h

    r14822 r14904  
    1818
    1919#include "../../shared/Exceptions/exceptions.h"
    20 #include "../../shared/MemOps/xMemCpy.h"
    21 #include "../../shared/Alloc/alloc.h"
     20#include "../../shared/MemOps/MemOps.h"
    2221#include "../../include/macros.h"
    2322#include <math.h>
  • issm/trunk-jpl/src/c/toolkits/issm/IssmToolkitUtils.cpp

    r14897 r14904  
    1111#endif
    1212
    13 #include "../../shared/MemOps/xMemCpy.h"
    14 #include "../../shared/Alloc/alloc.h"
     13#include "../../shared/MemOps/MemOps.h"
    1514#include "../../io/Comm/Comm.h"
    1615#include "../../include/macros.h"
  • issm/trunk-jpl/src/c/toolkits/issm/IssmVec.h

    r14864 r14904  
    1616#include "../../EnumDefinitions/EnumDefinitions.h"
    1717#include "../../shared/Exceptions/exceptions.h"
    18 #include "../../shared/MemOps/xMemCpy.h"
    19 #include "../../shared/Alloc/alloc.h"
     18#include "../../shared/MemOps/MemOps.h"
    2019#include "../../include/macros.h"
    2120#include "./IssmToolkitUtils.h"
  • issm/trunk-jpl/src/c/toolkits/mpi/patches/GetOwnershipBoundariesFromRange.cpp

    r14897 r14904  
    1111
    1212#include <stdio.h>
    13 #include "../../../shared/Alloc/alloc.h"
     13#include "../../../shared/MemOps/MemOps.h"
    1414#include "../../../io/Comm/Comm.h"
    1515
  • issm/trunk-jpl/src/c/toolkits/mumps/MpiDenseMumpsSolve.cpp

    r14897 r14904  
    1313#include "../../include/types.h"
    1414#include "../../include/macros.h"
    15 #include "../../shared/Alloc/alloc.h"
     15#include "../../shared/MemOps/MemOps.h"
    1616#include "../../shared/Exceptions/exceptions.h"
    1717#include "../../io/Comm/Comm.h"
  • issm/trunk-jpl/src/c/toolkits/petsc/objects/PetscSolver.cpp

    r14897 r14904  
    1111#include "./PetscSolver.h"
    1212#include "../../../shared/Numerics/Verbosity.h"
    13 #include "../../../shared/Alloc/alloc.h"
     13#include "../../../shared/MemOps/MemOps.h"
    1414#include "../../../shared/Exceptions/exceptions.h"
    1515#include "../../../io/Comm/Comm.h"
Note: See TracChangeset for help on using the changeset viewer.