Changeset 15091
- Timestamp:
- 05/23/13 21:21:00 (12 years ago)
- Location:
- issm/trunk-jpl/src
- Files:
-
- 2 added
- 1 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/Makefile.am
r15082 r15091 944 944 libISSMCore_la_LIBADD = $(PETSCLIB) $(TAOLIB) $(PLAPACKLIB) $(MUMPSLIB) $(SUPERLULIB) $(SPOOLESLIB) $(SCALAPACKLIB) $(BLACSLIB) $(HYPRELIB) $(SPAILIB) $(PROMETHEUSLIB) $(PASTIXLIB) $(MLLIB) $(DAKOTALIB) $(METISLIB) $(CHACOLIB) $(SCOTCHLIB) $(BLASLAPACKLIB) $(MKLLIB) $(MPILIB) $(MATHLIB) $(FORTRANLIB) $(GRAPHICSLIB) $(MULTITHREADINGLIB) $(OSLIBS) $(GSLLIB) $(ADOLCLIB) 945 945 libISSMCore_la_FFLAGS = $(AM_FFLAGS) 946 947 libISSMOverload_la_SOURCES = ./shared/String/stricmp.c948 946 endif 949 947 … … 971 969 #}}} 972 970 #Overload library, to overload any non-standard symbols. {{{ 973 libISSMOverload_a_SOURCES = ./shared/String/stricmp.c 971 libISSMOverload_a_SOURCES = ./shared/String/stricmp.cpp\ 972 ./shared/String/ApiPrintf.cpp 973 974 974 libISSMOverload_a_CFLAGS = -fPIC -D_C_ $(COPTFLAGS) $(CFLAGS) 975 975 #}}} -
issm/trunk-jpl/src/c/shared/String/sharedstring.h
r13623 r15091 12 12 #endif 13 13 14 void ApiPrintf(char* format,const char* string); 15 14 16 #endif //ifndef _SHAREDSTRING_H_ -
issm/trunk-jpl/src/c/shared/io/Print/Print.h
r15089 r15091 52 52 /*}}}*/ 53 53 54 /* _printLine_ {{{*/ 55 /* macro to print a line, adds std::endl, only on cpu 0 */ 56 #define _printLine_(StreamArgs)\ 57 do{std::ostringstream aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy; \ 58 aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy << StreamArgs << std::ends; \ 59 PrintfFunction3(aLoNgAnDwEiRdLoCaLnAmeFoRtHiSmAcRoOnLy.str());}while(0) 60 /*}}}*/ 61 54 62 /*functions: */ 55 63 int PrintfFunction(const char* format,...); -
issm/trunk-jpl/src/c/shared/io/Print/PrintfFunction.cpp
r15089 r15091 17 17 #include "./Print.h" 18 18 #include "../Comm/Comm.h" 19 #include "../../String/sharedstring.h" 19 20 #include "../../MemOps/MemOps.h" 20 21 … … 71 72 __android_log_print(ANDROID_LOG_INFO, "Native",message.c_str()); 72 73 #else 73 printf("%s\n",message.c_str());74 ApiPrintf("%s\n",message.c_str()); 74 75 #endif 75 76 } … … 83 84 84 85 if(my_rank==0){ 85 printf("%s",message.c_str());86 ApiPrintf("%s",message.c_str()); 86 87 } 87 88 return 1; … … 92 93 __android_log_print(ANDROID_LOG_INFO, "Native",message.c_str()); 93 94 #else 94 printf("%s\n",message.c_str());95 ApiPrintf("%s\n",message.c_str()); 95 96 #endif 96 97 … … 99 100 int PrintfFunction4(const string & message){ 100 101 101 printf("%s",message.c_str());102 ApiPrintf("%s",message.c_str()); 102 103 103 104 return 1; -
issm/trunk-jpl/src/wrappers/matlab/io/WriteMatlabData.cpp
r14719 r15091 488 488 } 489 489 /*}}}*/ 490 491 /*Matlab printf i/o: */ 492 /*FUNCTION ApiPrintf(char* format, const char* string){{{*/ 493 void ApiPrintf(char* format,const char* string){ 494 495 /*use mexPrintf in matlab: */ 496 mexPrintf(format,string); 497 498 return; 499 } 500 /*}}}*/ -
issm/trunk-jpl/src/wrappers/matlab/io/matlabio.h
r15061 r15091 16 16 #include "../../c/classes/classes.h" 17 17 #include "../../c/toolkits/toolkits.h" 18 #include "../../c/shared/shared.h" 18 19 19 20 void WriteData(mxArray** pdataref,IssmDenseMat<double>* matrix); … … 95 96 #endif 96 97 98 97 99 #endif /* _IO_H_ */ -
issm/trunk-jpl/src/wrappers/python/io/WritePythonData.cpp
r14996 r15091 291 291 } 292 292 /*}}}*/ 293 294 /*Python printf i/o: */ 295 /*FUNCTION ApiPrintf(char* format, const char* string){{{*/ 296 void ApiPrintf(char* format,const char* string){ 297 298 /*use printf: */ 299 printf(format,string); 300 301 return; 302 } 303 /*}}}*/ -
issm/trunk-jpl/src/wrappers/python/io/pythonio.h
r15061 r15091 15 15 #include "../../c/bamg/bamgobjects.h" 16 16 #include "../../c/classes/classes.h" 17 #include "../../c/shared/shared.h" 17 18 18 19 void WriteData(PyObject* py_tuple,int index, double* matrix, int M,int N);
Note:
See TracChangeset
for help on using the changeset viewer.