Changeset 14910
- Timestamp:
- 05/05/13 12:58:46 (12 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 3 added
- 1 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Makefile.am
r14907 r14910 236 236 ./io/Disk/pfclose.cpp\ 237 237 ./io/Disk/WriteLockFile.cpp\ 238 ./io/PrintfFunction.cpp\ 238 ./io/Print/PrintfFunction.cpp\ 239 ./io/Print/Print.h\ 239 240 ./io/Comm/Comm.h\ 240 241 ./io/Comm/CommDef.h\ -
issm/trunk-jpl/src/c/classes/DofIndexing.cpp
r14908 r14910 14 14 #include "../include/types.h" 15 15 #include "../include/typedefs.h" 16 #include "../io/Print/Print.h" 16 17 #include "../include/macros.h" 17 18 #include "../shared/Exceptions/exceptions.h" -
issm/trunk-jpl/src/c/classes/bamg/Edge.cpp
r13036 r14910 7 7 #include "Mesh.h" 8 8 #include "Geometry.h" 9 #include "../../io/Print/Print.h" 9 10 10 11 namespace bamg { -
issm/trunk-jpl/src/c/classes/bamg/EigenMetric.cpp
r13622 r14910 5 5 6 6 #include "Metric.h" 7 #include "../../io/Print/Print.h" 7 8 8 9 namespace bamg { -
issm/trunk-jpl/src/c/classes/bamg/Metric.cpp
r13622 r14910 6 6 #include "../../include/include.h" 7 7 #include "../../shared/Exceptions/exceptions.h" 8 #include "../../io/Print/Print.h" 8 9 9 10 using namespace std; -
issm/trunk-jpl/src/c/classes/gauss/GaussPenta.cpp
r14909 r14910 6 6 #include "./GaussTria.h" 7 7 #include "../../include/macros.h" 8 #include "../../io/Print/Print.h" 8 9 #include "../../shared/Exceptions/exceptions.h" 9 10 #include "../../shared/MemOps/MemOps.h" -
issm/trunk-jpl/src/c/classes/gauss/GaussTria.cpp
r14909 r14910 5 5 #include "./GaussTria.h" 6 6 #include "../../include/macros.h" 7 #include "../../io/Print/Print.h" 7 8 #include "../../shared/Exceptions/exceptions.h" 8 9 #include "../../shared/MemOps/MemOps.h" 9 10 #include "../../shared/Numerics/GaussPoints.h" 11 #include "../../include/typedefs.h" 10 12 11 13 /*GaussTria constructors and destructors:*/ -
issm/trunk-jpl/src/c/include/macros.h
r13816 r14910 19 19 /*}}}*/ 20 20 21 /* _printf_ {{{*/ 22 /*Printing macro: only cpu number 0 */ 23 #define _printf_(flag,...) do{if(flag) PrintfFunction(__VA_ARGS__);}while(0) 21 22 /*Exceptions: */ 23 /* _assert_ {{{*/ 24 /*Assertion macro: do nothing if macro _ISSM_DEBUG_ undefined*/ 25 #ifdef _ISSM_DEBUG_ 26 #define _assert_(statement)\ 27 if (!(statement)) _error_("Assertion \""<<#statement<<"\" failed, please report bug to "<<PACKAGE_BUGREPORT) 28 #else 29 #define _assert_(ignore)\ 30 ((void) 0) 31 #endif 24 32 /*}}}*/ 25 33 /* _error_ {{{*/ … … 35 43 aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy << StreamArgs << std::ends; \ 36 44 throw ErrorException(__FILE__,__func__,__LINE__,aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy.str());}while(0) 37 #endif38 /*}}}*/39 /* _printLine_ {{{*/40 /* macro to print a line, adds std::endl */41 #define _printLine_(StreamArgs)\42 do{std::cout << StreamArgs << std::endl;}while(0)43 /*}}}*/44 /* _printString_ {{{*/45 /* macro to print some string */46 #define _printString_(StreamArgs)\47 do{std::cout << StreamArgs;}while(0)48 /*}}}*/49 /* _pprintLine_ {{{*/50 /* macro to print a line, adds std::endl, only on cpu 0 */51 #define _pprintLine_(StreamArgs)\52 do{std::ostringstream aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy; \53 aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy << StreamArgs << std::ends; \54 PrintfFunction(aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy.str());}while(0)55 /*}}}*/56 /* _pprintString_ {{{*/57 /* macro to print some string. Only on cpu0 */58 #define _pprintString_(StreamArgs)\59 do{std::ostringstream aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy; \60 aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy << StreamArgs << std::ends; \61 PrintfFunction2(aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy.str());}while(0)62 /*}}}*/63 /* _assert_ {{{*/64 /*Assertion macro: do nothing if macro _ISSM_DEBUG_ undefined*/65 #ifdef _ISSM_DEBUG_66 #define _assert_(statement)\67 if (!(statement)) _error_("Assertion \""<<#statement<<"\" failed, please report bug to "<<PACKAGE_BUGREPORT)68 #else69 #define _assert_(ignore)\70 ((void) 0)71 45 #endif 72 46 /*}}}*/ -
issm/trunk-jpl/src/c/io/io.h
r12513 r14910 11 11 #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!" 12 12 #endif 13 13 14 #include "./Disk/diskio.h" 14 15 /*printf: */ 16 int PrintfFunction(const char* format,...); 17 int PrintfFunction(const string & message); 18 int PrintfFunction2(const string & message); 15 #include "./Print/Print.h" 16 #include "./Comm/Comm.h" 19 17 20 18 #endif /* _IO_H_ */ -
issm/trunk-jpl/src/c/toolkits/issm/IssmDenseMat.h
r14904 r14910 20 20 #include "../../shared/Exceptions/exceptions.h" 21 21 #include "../../shared/MemOps/MemOps.h" 22 #include "../../io/Print/Print.h" 22 23 #include "../../include/macros.h" 23 24 #include "../../toolkits/gsl/gslincludes.h" -
issm/trunk-jpl/src/c/toolkits/issm/IssmSeqVec.h
r14904 r14910 18 18 19 19 #include "../../shared/Exceptions/exceptions.h" 20 #include "../../io/Print/Print.h" 20 21 #include "../../shared/MemOps/MemOps.h" 21 22 #include "../../include/macros.h"
Note:
See TracChangeset
for help on using the changeset viewer.