Changeset 1904
- Timestamp:
- 08/25/09 17:56:24 (15 years ago)
- Location:
- issm/trunk/src
- Files:
-
- 44 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/ContourToMeshx/ContourToMeshx.cpp
r291 r1904 30 30 /*Loop through all contours: */ 31 31 for (i=0;i<numcontours;i++){ 32 #ifdef _ DEBUG_32 #ifdef _ISSM_DEBUG_ 33 33 printf("\nHandling contour %i/%i\n",i,numcontours); 34 34 #endif -
issm/trunk/src/c/ContourToNodesx/ContourToNodesx.cpp
r1105 r1904 26 26 /*Loop through all contours: */ 27 27 for (i=0;i<numcontours;i++){ 28 #ifdef _ DEBUG_28 #ifdef _ISSM_DEBUG_ 29 29 printf("\nHandling contour %i/%i\n",i,numcontours); 30 30 #endif -
issm/trunk/src/c/DataSet/DataSet.cpp
r1898 r1904 214 214 } 215 215 216 #ifdef _ DEBUG_216 #ifdef _ISSM_DEBUG_ 217 217 _printf_("Number of objects in dataset being demarshalled: %i\n",numobjects); 218 218 #endif … … 641 641 NodeRank(ranks); 642 642 643 #ifdef _ DEBUG_643 #ifdef _ISSM_DEBUG_ 644 644 for(i=0;i<numberofnodes;i++){ 645 645 _printf_("%i\n",ranks[i]); … … 653 653 MPI_Allreduce ( (void*)ranks,(void*)minranks,numberofnodes,MPI_INT,MPI_MIN,MPI_COMM_WORLD); 654 654 655 #ifdef _ DEBUG_655 #ifdef _ISSM_DEBUG_ 656 656 for(i=0;i<numberofnodes;i++){ 657 657 _printf_("%i\n",minranks[i]); -
issm/trunk/src/c/GriddataMeshToGridx/GriddataMeshToGridx.cpp
r819 r1904 137 137 } 138 138 for (i=0;i<numcontours;i++){ 139 #ifdef _ DEBUG_139 #ifdef _ISSM_DEBUG_ 140 140 _printf_("Handling contour %i/%i\n",i,numcontours); 141 141 #endif -
issm/trunk/src/c/HoleFillerx/HoleFillerx.cpp
r1454 r1904 44 44 int imageoutsize; 45 45 46 #ifdef _ DEBUG_46 #ifdef _ISSM_DEBUG_ 47 47 if ( smooth == 1 ){ 48 48 printf("Data patches will be SMOOTHED. \n"); … … 93 93 #endif 94 94 95 #ifdef _ DEBUG_95 #ifdef _ISSM_DEBUG_ 96 96 printf( "\n" ); 97 97 printf( "Iterations %5ld and %5ld.", count-1, count ); … … 119 119 #endif 120 120 121 #ifdef _ DEBUG_121 #ifdef _ISSM_DEBUG_ 122 122 printf( "\b\b\b\b\b\b\b\b\b\b\b\b\b\b" ); 123 123 printf( "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b" ); … … 367 367 } 368 368 369 #ifdef _ DEBUG_369 #ifdef _ISSM_DEBUG_ 370 370 if ( !(i%100) ){ 371 371 fprintf(stdout, "\b\b\b\b\b\b%5ld ", i ); /* Count lines on output screen */ … … 375 375 } 376 376 377 #ifdef _ DEBUG_377 #ifdef _ISSM_DEBUG_ 378 378 fprintf(stdout, "\b\b\b\b\b\b%5ld ", lines ); 379 379 fflush(stdout); … … 389 389 390 390 time(&t2); 391 #ifdef _ DEBUG_391 #ifdef _ISSM_DEBUG_ 392 392 printf ( "\n\nEnd "); printf( ctime(&t2) ); 393 393 printf( "\n Total time: "); … … 403 403 end: 404 404 405 #ifdef _ DEBUG_405 #ifdef _ISSM_DEBUG_ 406 406 printf( "Done.\a\n" ); 407 407 #endif -
issm/trunk/src/c/Makefile.am
r1901 r1904 302 302 303 303 304 libISSM_a_CXXFLAGS = -fPIC -DMATLAB -D_SERIAL_ -ansi -D_GNU_SOURCE -fno-omit-frame-pointer -pthread -D_CPP_ 304 libISSM_a_CXXFLAGS = -fPIC -DMATLAB -D_SERIAL_ -ansi -D_GNU_SOURCE -fno-omit-frame-pointer -pthread -D_CPP_ -g -O0 305 305 if LARGEARRAYS 306 306 libISSM_a_CXXFLAGS += -D__GCC4BUILD__ -
issm/trunk/src/c/MeshPartitionx/MeshPartitionx.cpp
r582 r1904 88 88 } 89 89 90 #ifdef _ DEBUG_90 #ifdef _ISSM_DEBUG_ 91 91 if(my_rank==0){ 92 92 for (i=0;i<numberofelements;i++){ -
issm/trunk/src/c/ModelProcessorx/DiagnosticHoriz/CreateElementsNodesAndMaterialsDiagnosticHoriz.cpp
r1832 r1904 505 505 VecAssemblyEnd(gridborder); 506 506 507 #ifdef _ DEBUG_507 #ifdef _ISSM_DEBUG_ 508 508 VecView(gridborder,PETSC_VIEWER_STDOUT_WORLD); 509 509 #endif … … 511 511 VecToMPISerial(&my_bordergrids,gridborder); 512 512 513 #ifdef _ DEBUG_513 #ifdef _ISSM_DEBUG_ 514 514 if(my_rank==0){ 515 515 for (i=0;i<iomodel->numberofnodes;i++){ -
issm/trunk/src/c/ModelProcessorx/DiagnosticHutter/CreateElementsNodesAndMaterialsDiagnosticHutter.cpp
r1835 r1904 184 184 VecAssemblyEnd(gridborder); 185 185 186 #ifdef _ DEBUG_186 #ifdef _ISSM_DEBUG_ 187 187 VecView(gridborder,PETSC_VIEWER_STDOUT_WORLD); 188 188 #endif … … 190 190 VecToMPISerial(&my_bordergrids,gridborder); 191 191 192 #ifdef _ DEBUG_192 #ifdef _ISSM_DEBUG_ 193 193 if(my_rank==0){ 194 194 for (i=0;i<iomodel->numberofnodes;i++){ -
issm/trunk/src/c/ModelProcessorx/DiagnosticStokes/CreateElementsNodesAndMaterialsDiagnosticStokes.cpp
r1891 r1904 334 334 VecAssemblyEnd(gridborder); 335 335 336 #ifdef _ DEBUG_336 #ifdef _ISSM_DEBUG_ 337 337 VecView(gridborder,PETSC_VIEWER_STDOUT_WORLD); 338 338 #endif … … 340 340 VecToMPISerial(&my_bordergrids,gridborder); 341 341 342 #ifdef _ DEBUG_342 #ifdef _ISSM_DEBUG_ 343 343 if(my_rank==0){ 344 344 for (i=0;i<iomodel->numberofnodes;i++){ -
issm/trunk/src/c/ModelProcessorx/DiagnosticVert/CreateElementsNodesAndMaterialsDiagnosticVert.cpp
r1834 r1904 284 284 VecAssemblyEnd(gridborder); 285 285 286 #ifdef _ DEBUG_286 #ifdef _ISSM_DEBUG_ 287 287 VecView(gridborder,PETSC_VIEWER_STDOUT_WORLD); 288 288 #endif … … 290 290 VecToMPISerial(&my_bordergrids,gridborder); 291 291 292 #ifdef _ DEBUG_292 #ifdef _ISSM_DEBUG_ 293 293 if(my_rank==0){ 294 294 for (i=0;i<iomodel->numberofnodes;i++){ -
issm/trunk/src/c/ModelProcessorx/Melting/CreateElementsNodesAndMaterialsMelting.cpp
r1834 r1904 301 301 VecAssemblyEnd(gridborder); 302 302 303 #ifdef _ DEBUG_303 #ifdef _ISSM_DEBUG_ 304 304 VecView(gridborder,PETSC_VIEWER_STDOUT_WORLD); 305 305 #endif … … 307 307 VecToMPISerial(&my_bordergrids,gridborder); 308 308 309 #ifdef _ DEBUG_309 #ifdef _ISSM_DEBUG_ 310 310 if(my_rank==0){ 311 311 for (i=0;i<iomodel->numberofnodes;i++){ -
issm/trunk/src/c/ModelProcessorx/Prognostic/CreateElementsNodesAndMaterialsPrognostic.cpp
r1834 r1904 350 350 VecAssemblyEnd(gridborder); 351 351 352 #ifdef _ DEBUG_352 #ifdef _ISSM_DEBUG_ 353 353 VecView(gridborder,PETSC_VIEWER_STDOUT_WORLD); 354 354 #endif … … 356 356 VecToMPISerial(&my_bordergrids,gridborder); 357 357 358 #ifdef _ DEBUG_358 #ifdef _ISSM_DEBUG_ 359 359 if(my_rank==0){ 360 360 for (i=0;i<iomodel->numberofnodes;i++){ -
issm/trunk/src/c/ModelProcessorx/Qmu/CreateParametersQmu.cpp
r1836 r1904 146 146 parameters->AddObject(param); 147 147 148 #ifdef _ DEBUG_148 #ifdef _ISSM_DEBUG_ 149 149 for(i=0;i<iomodel->numberofvariables;i++){ 150 150 _printf_("variable descriptor %s\n",variabledescriptors[i]); -
issm/trunk/src/c/ModelProcessorx/SlopeCompute/CreateElementsNodesAndMaterialsSlopeCompute.cpp
r1833 r1904 312 312 VecAssemblyEnd(gridborder); 313 313 314 #ifdef _ DEBUG_314 #ifdef _ISSM_DEBUG_ 315 315 VecView(gridborder,PETSC_VIEWER_STDOUT_WORLD); 316 316 #endif … … 318 318 VecToMPISerial(&my_bordergrids,gridborder); 319 319 320 #ifdef _ DEBUG_320 #ifdef _ISSM_DEBUG_ 321 321 if(my_rank==0){ 322 322 for (i=0;i<iomodel->numberofnodes;i++){ -
issm/trunk/src/c/ModelProcessorx/Thermal/CreateElementsNodesAndMaterialsThermal.cpp
r1834 r1904 304 304 VecAssemblyEnd(gridborder); 305 305 306 #ifdef _ DEBUG_306 #ifdef _ISSM_DEBUG_ 307 307 VecView(gridborder,PETSC_VIEWER_STDOUT_WORLD); 308 308 #endif … … 310 310 VecToMPISerial(&my_bordergrids,gridborder); 311 311 312 #ifdef _ DEBUG_312 #ifdef _ISSM_DEBUG_ 313 313 if(my_rank==0){ 314 314 for (i=0;i<iomodel->numberofnodes;i++){ -
issm/trunk/src/c/PenaltyConstraintsx/RiftConstraints.cpp
r1805 r1904 263 263 #endif 264 264 265 #ifdef _ DEBUG_265 #ifdef _ISSM_DEBUG_ 266 266 printf("Maximum rift penetration2: %g\n",max_penetration); 267 267 #endif -
issm/trunk/src/c/PenaltySystemMatricesx/PenaltySystemMatricesx.cpp
r586 r1904 28 28 /*Now, figure out maximum value of K_gg, so that we can penalize it correctly: */ 29 29 MatNorm(Kgg,NORM_INFINITY,&kmax); 30 #ifdef _ DEBUG_30 #ifdef _ISSM_DEBUG_ 31 31 _printf_(" K_gg infinity norm: %g\n",kmax); 32 32 #endif … … 47 47 } 48 48 49 #ifdef _ DEBUG_49 #ifdef _ISSM_DEBUG_ 50 50 MatNorm(Kgg,NORM_INFINITY,&kmax2); 51 51 _printf_(" K_gg infinity norm after penalties: %g\n",kmax2); -
issm/trunk/src/c/Qmux/SpawnCoreParallel.cpp
r1881 r1904 69 69 model->FindParam(&qmu_npart,"qmu_npart"); 70 70 model->FindParam(&qmu_part,"qmu_part"); 71 #ifdef _ DEBUG_71 #ifdef _ISSM_DEBUG_ 72 72 for(i=0;i<numresponses;i++){ 73 73 PetscSynchronizedPrintf(MPI_COMM_WORLD,"response descriptor %i: %s\n",i,responses_descriptors[i]); … … 81 81 MPI_Bcast(variables,numvariables,MPI_DOUBLE,0,MPI_COMM_WORLD); 82 82 83 #ifdef _ DEBUG_83 #ifdef _ISSM_DEBUG_ 84 84 for(i=0;i<numvariables;i++){ 85 85 PetscSynchronizedPrintf(MPI_COMM_WORLD,"variable %i: %g\n",i,variables[i]); … … 103 103 } 104 104 105 #ifdef _ DEBUG_105 #ifdef _ISSM_DEBUG_ 106 106 for(i=0;i<numvariables;i++){ 107 107 PetscSynchronizedPrintf(MPI_COMM_WORLD,"variable descriptor %i: %s value: %g\n",i,variables_descriptors[i],variables[i]); -
issm/trunk/src/c/Solverx/Solverx.cpp
r1 r1904 75 75 76 76 77 #ifdef _ DEBUG_77 #ifdef _ISSM_DEBUG_ 78 78 KSPView(ksp,PETSC_VIEWER_STDOUT_WORLD); 79 79 KSPGetInitialGuessNonzero(ksp,&flag); … … 89 89 } 90 90 else{ 91 #ifdef _ DEBUG_91 #ifdef _ISSM_DEBUG_ 92 92 _printf_("%s%i%s\n","Solver converged after ",iteration_number," iterations"); 93 93 #endif -
issm/trunk/src/c/objects/Matice.cpp
r1439 r1904 181 181 } 182 182 } 183 #ifdef _ DEBUG_184 _printf_("Viscosity %lf\n",viscosity);183 #ifdef _ISSM_DEBUG_ 184 printf("Viscosity %lf\n",viscosity); 185 185 #endif 186 186 … … 241 241 } 242 242 243 #ifdef _ DEBUG_244 _printf_("viscosity_complement %lf\n",mu2);243 #ifdef _ISSM_DEBUG_ 244 printf("viscosity_complement %lf\n",viscosity_complement); 245 245 #endif 246 246 … … 306 306 } 307 307 } 308 #ifdef _ DEBUG_309 _printf_("Viscosity %lf\n",viscosity3d);308 #ifdef _ISSM_DEBUG_ 309 printf("Viscosity %lf\n",viscosity3d); 310 310 #endif 311 311 … … 375 375 } 376 376 377 #ifdef _ DEBUG_378 _printf_("Viscosity %lf\n",viscosity3d);377 #ifdef _ISSM_DEBUG_ 378 printf("Viscosity %lf\n",viscosity3d); 379 379 #endif 380 380 -
issm/trunk/src/c/objects/ParameterInputs.cpp
r962 r1904 329 329 } 330 330 331 #ifdef _ DEBUG_331 #ifdef _ISSM_DEBUG_ 332 332 PetscSynchronizedPrintf(MPI_COMM_WORLD,"Parameter vetor:"); 333 333 PetscSynchronizedFlush(MPI_COMM_WORLD); -
issm/trunk/src/c/objects/Penta.cpp
r1901 r1904 710 710 711 711 GaussPenta( &num_area_gauss, &first_gauss_area_coord, &second_gauss_area_coord, &third_gauss_area_coord, &area_gauss_weights, &fourth_gauss_vert_coord,&vert_gauss_weights,order_area_gauss,num_vert_gauss); 712 #ifdef _ DEBUG_712 #ifdef _ISSM_DEBUG_ 713 713 for (i=0;i<num_area_gauss;i++){ 714 _printf_("Area Gauss coord %i: %lf %lf %lf Weight: %lf\n",i,*(first_gauss_area_coord+i),*(second_gauss_area_coord+i),*(third_gauss_area_coord+i),*(area_gauss_weights+i));714 printf("Area Gauss coord %i: %lf %lf %lf Weight: %lf\n",i,*(first_gauss_area_coord+i),*(second_gauss_area_coord+i),*(third_gauss_area_coord+i),*(area_gauss_weights+i)); 715 715 } 716 716 for (i=0;i<num_vert_gauss;i++){ 717 _printf_("Vert Gauss coord %i: %lf Weight: %lf\n",i,*(fourth_gauss_vert_coord+i),*(vert_gauss_weights+i));717 printf("Vert Gauss coord %i: %lf Weight: %lf\n",i,*(fourth_gauss_vert_coord+i),*(vert_gauss_weights+i)); 718 718 } 719 719 #endif … … 1434 1434 GetB(&B[0][0], xyz_list, gauss_l1l2l3l4); 1435 1435 1436 #ifdef _ DEBUG_1437 _printf_("B for grid1 : [ %lf %lf \n",B[0][0],B[0][1]);1438 _printf_(" [ %lf %lf \n",B[1][0],B[1][1]);1439 _printf_(" [ %lf %lf ]\n",B[2][0],B[2][1]);1440 _printf_(" [ %lf %lf ]\n",B[3][0],B[3][1]);1441 _printf_(" [ %lf %lf ]\n",B[4][0],B[4][1]);1442 1443 _printf_("B for grid2 : [ %lf %lf \n",B[0][2],B[0][3]);1444 _printf_(" [ %lf %lf \n",B[1][2],B[1][3]);1445 _printf_(" [ %lf %lf ]\n",B[2][2],B[2][3]);1446 _printf_(" [ %lf %lf ]\n",B[3][2],B[3][3]);1447 _printf_(" [ %lf %lf ]\n",B[4][2],B[4][3]);1448 1449 _printf_("B for grid3 : [ %lf %lf \n", B[0][4],B[0][5]);1450 _printf_(" [ %lf %lf \n", B[1][4],B[1][5]);1451 _printf_(" [ %lf %lf ]\n",B[2][4],B[2][5]);1452 _printf_(" [ %lf %lf ]\n",B[3][4],B[3][5]);1453 _printf_(" [ %lf %lf ]\n",B[4][4],B[4][5]);1454 1455 _printf_("B for grid4 : [ %lf %lf \n", B[0][6],B[0][7]);1456 _printf_(" [ %lf %lf \n", B[1][6],B[1][7]);1457 _printf_(" [ %lf %lf ]\n",B[2][6],B[2][7]);1458 _printf_(" [ %lf %lf ]\n",B[3][6],B[3][7]);1459 _printf_(" [ %lf %lf ]\n",B[4][6],B[4][7]);1436 #ifdef _ISSM_DEBUG_ 1437 printf("B for grid1 : [ %lf %lf \n",B[0][0],B[0][1]); 1438 printf(" [ %lf %lf \n",B[1][0],B[1][1]); 1439 printf(" [ %lf %lf ]\n",B[2][0],B[2][1]); 1440 printf(" [ %lf %lf ]\n",B[3][0],B[3][1]); 1441 printf(" [ %lf %lf ]\n",B[4][0],B[4][1]); 1442 1443 printf("B for grid2 : [ %lf %lf \n",B[0][2],B[0][3]); 1444 printf(" [ %lf %lf \n",B[1][2],B[1][3]); 1445 printf(" [ %lf %lf ]\n",B[2][2],B[2][3]); 1446 printf(" [ %lf %lf ]\n",B[3][2],B[3][3]); 1447 printf(" [ %lf %lf ]\n",B[4][2],B[4][3]); 1448 1449 printf("B for grid3 : [ %lf %lf \n", B[0][4],B[0][5]); 1450 printf(" [ %lf %lf \n", B[1][4],B[1][5]); 1451 printf(" [ %lf %lf ]\n",B[2][4],B[2][5]); 1452 printf(" [ %lf %lf ]\n",B[3][4],B[3][5]); 1453 printf(" [ %lf %lf ]\n",B[4][4],B[4][5]); 1454 1455 printf("B for grid4 : [ %lf %lf \n", B[0][6],B[0][7]); 1456 printf(" [ %lf %lf \n", B[1][6],B[1][7]); 1457 printf(" [ %lf %lf ]\n",B[2][6],B[2][7]); 1458 printf(" [ %lf %lf ]\n",B[3][6],B[3][7]); 1459 printf(" [ %lf %lf ]\n",B[4][6],B[4][7]); 1460 1460 1461 _printf_("B for grid5 : [ %lf %lf \n", B[0][8],B[0][9]); 1462 _printf_(" [ %lf %lf \n", B[1][8],B[1][9]); 1463 _printf_(" [ %lf %lf ]\n",B[2][8],B[2][9]); 1464 _printf_(" [ %lf %lf ]\n",B[3][8],B[3][9]); 1465 _printf_(" [ %lf %lf ]\n",B[4][8],B[4][9]); 1466 1467 _printf_("B for grid6 : [ %lf %lf \n", B[0][10],B[0][11]); 1468 _printf_(" [ %lf %lf \n", B[1][10],B[1][11]); 1469 _printf_(" [ %lf %lf ]\n",B[2][10],B[2][11]); 1470 _printf_(" [ %lf %lf ]\n",B[3][10],B[3][11]); 1471 _printf_(" [ %lf %lf ]\n",B[4][10],B[4][11]); 1472 1473 for (i=0;i<numgrids;i++){ 1474 _printf_("Velocity for grid %i %lf %lf\n",i,*(vxvy_list+2*i+0),*(vxvy_list+2*i+1)); 1475 } 1461 printf("B for grid5 : [ %lf %lf \n", B[0][8],B[0][9]); 1462 printf(" [ %lf %lf \n", B[1][8],B[1][9]); 1463 printf(" [ %lf %lf ]\n",B[2][8],B[2][9]); 1464 printf(" [ %lf %lf ]\n",B[3][8],B[3][9]); 1465 printf(" [ %lf %lf ]\n",B[4][8],B[4][9]); 1466 1467 printf("B for grid6 : [ %lf %lf \n", B[0][10],B[0][11]); 1468 printf(" [ %lf %lf \n", B[1][10],B[1][11]); 1469 printf(" [ %lf %lf ]\n",B[2][10],B[2][11]); 1470 printf(" [ %lf %lf ]\n",B[3][10],B[3][11]); 1471 printf(" [ %lf %lf ]\n",B[4][10],B[4][11]); 1472 1476 1473 #endif 1477 1474 … … 1510 1507 GetNodalFunctionsDerivativesBasic(&dh1dh2dh3dh4dh5dh6_basic[0][0],xyz_list, gauss_l1l2l3l4); 1511 1508 1512 #ifdef _ DEBUG_1509 #ifdef _ISSM_DEBUG_ 1513 1510 for (i=0;i<numgrids;i++){ 1514 _printf_("Node %i dh/dx=%lf dh/dy=%lf dh/dz=%lf\n",i,dh1dh2dh3dh4dh5dh6_basic[0][i],dh1dh2dh3dh4dh5dh6_basic[1][i],dh1dh2dh3dh4dh5dh6_basic[2][i]);1511 printf("Node %i dh/dx=%lf dh/dy=%lf dh/dz=%lf\n",i,dh1dh2dh3dh4dh5dh6_basic[0][i],dh1dh2dh3dh4dh5dh6_basic[1][i],dh1dh2dh3dh4dh5dh6_basic[2][i]); 1515 1512 } 1516 1513 #endif … … 1564 1561 GetNodalFunctionsDerivativesBasic(&dh1dh2dh3dh4dh5dh6_basic[0][0],xyz_list, gauss_l1l2l3l4); 1565 1562 1566 #ifdef _ DEBUG_1563 #ifdef _ISSM_DEBUG_ 1567 1564 for (i=0;i<numgrids;i++){ 1568 _printf_("Node %i dh/dx=%lf dh/dy=%lf dh/dz=%lf\n",i,dh1dh2dh3dh4dh5dh6_basic[0][i],dh1dh2dh3dh4dh5dh6_basic[1][i],dh1dh2dh3dh4dh5dh6_basic[2][i]);1565 printf("Node %i dh/dx=%lf dh/dy=%lf dh/dz=%lf\n",i,dh1dh2dh3dh4dh5dh6_basic[0][i],dh1dh2dh3dh4dh5dh6_basic[1][i],dh1dh2dh3dh4dh5dh6_basic[2][i]); 1569 1566 } 1570 1567 #endif … … 1704 1701 *(J+NDOF3*2+2)=sqrt3/12.0*(z1+z2-2*z3-z4-z5+2*z6)*eta+1.0/4.0*(z1-z2-z4+z5)*xi+1.0/4.0*(-z1+z5-z2+z4); 1705 1702 1706 #ifdef _ DEBUG_1703 #ifdef _ISSM_DEBUG_ 1707 1704 for(i=0;i<3;i++){ 1708 1705 for (j=0;j<3;j++){ … … 1869 1866 1870 1867 GaussPenta( &num_area_gauss, &first_gauss_area_coord, &second_gauss_area_coord, &third_gauss_area_coord, &area_gauss_weights, &fourth_gauss_vert_coord,&vert_gauss_weights,order_area_gauss,num_vert_gauss); 1871 #ifdef _ DEBUG_1868 #ifdef _ISSM_DEBUG_ 1872 1869 for (i=0;i<num_area_gauss;i++){ 1873 _printf_("Area Gauss coord %i: %lf %lf %lf Weight: %lf\n",i,*(first_gauss_area_coord+i),*(second_gauss_area_coord+i),*(third_gauss_area_coord+i),*(area_gauss_weights+i));1870 printf("Area Gauss coord %i: %lf %lf %lf Weight: %lf\n",i,*(first_gauss_area_coord+i),*(second_gauss_area_coord+i),*(third_gauss_area_coord+i),*(area_gauss_weights+i)); 1874 1871 } 1875 1872 for (i=0;i<num_vert_gauss;i++){ 1876 _printf_("Vert Gauss coord %i: %lf Weight: %lf\n",i,*(fourth_gauss_vert_coord+i),*(vert_gauss_weights+i));1873 printf("Vert Gauss coord %i: %lf Weight: %lf\n",i,*(fourth_gauss_vert_coord+i),*(vert_gauss_weights+i)); 1877 1874 } 1878 1875 #endif … … 2151 2148 GetNodalFunctionsDerivativesBasic(&dh1dh2dh3dh4dh5dh6_basic[0][0],xyz_list, gauss_l1l2l3l4); 2152 2149 2153 #ifdef _ DEBUG_2150 #ifdef _ISSM_DEBUG_ 2154 2151 for (i=0;i<numgrids;i++){ 2155 _printf_("Node %i dh/dx=%lf dh/dy=%lf dh/dz=%lf\n",i,dh1dh2dh3dh4dh5dh6_basic[0][i],dh1dh2dh3dh4dh5dh6_basic[1][i],dh1dh2dh3dh4dh5dh6_basic[2][i]);2152 printf("Node %i dh/dx=%lf dh/dy=%lf dh/dz=%lf\n",i,dh1dh2dh3dh4dh5dh6_basic[0][i],dh1dh2dh3dh4dh5dh6_basic[1][i],dh1dh2dh3dh4dh5dh6_basic[2][i]); 2156 2153 } 2157 2154 #endif … … 2261 2258 2262 2259 GaussPenta( &num_area_gauss, &first_gauss_area_coord, &second_gauss_area_coord, &third_gauss_area_coord, &area_gauss_weights, &fourth_gauss_vert_coord,&vert_gauss_weights,order_area_gauss,num_vert_gauss); 2263 #ifdef _ DEBUG_2260 #ifdef _ISSM_DEBUG_ 2264 2261 for (i=0;i<num_area_gauss;i++){ 2265 _printf_("Area Gauss coord %i: %lf %lf %lf Weight: %lf\n",i,*(first_gauss_area_coord+i),*(second_gauss_area_coord+i),*(third_gauss_area_coord+i),*(area_gauss_weights+i));2262 printf("Area Gauss coord %i: %lf %lf %lf Weight: %lf\n",i,*(first_gauss_area_coord+i),*(second_gauss_area_coord+i),*(third_gauss_area_coord+i),*(area_gauss_weights+i)); 2266 2263 } 2267 2264 for (i=0;i<num_vert_gauss;i++){ 2268 _printf_("Vert Gauss coord %i: %lf Weight: %lf\n",i,*(fourth_gauss_vert_coord+i),*(vert_gauss_weights+i));2265 printf("Vert Gauss coord %i: %lf Weight: %lf\n",i,*(fourth_gauss_vert_coord+i),*(vert_gauss_weights+i)); 2269 2266 } 2270 2267 #endif … … 2293 2290 /* Get Jacobian determinant: */ 2294 2291 GetJacobianDeterminant(&Jdet, &xyz_list[0][0],gauss_l1l2l3l4); 2295 #ifdef _ DEBUG_2296 _printf_("Element id %i Jacobian determinant: %lf\n",PentaElementGetID(this),Jdet);2292 #ifdef _ISSM_DEBUG_ 2293 printf("Element id %i Jacobian determinant: %lf\n",GetId(),Jdet); 2297 2294 #endif 2298 2295 … … 2629 2626 GetNodalFunctions(l1l6, gauss_coord); 2630 2627 2631 #ifdef _ DEBUG_2628 #ifdef _ISSM_DEBUG_ 2632 2629 for (i=0;i<7;i++){ 2633 2630 printf("Node %i dh/dx=%lf dh/dy=%lf dh/dz=%lf \n",i,dh1dh7_basic[0][i],dh1dh7_basic[1][i],dh1dh7_basic[2][i]); … … 2711 2708 GetNodalFunctions(l1l6, gauss_coord); 2712 2709 2713 #ifdef _ DEBUG_2710 #ifdef _ISSM_DEBUG_ 2714 2711 for (i=0;i<6;i++){ 2715 2712 printf("Node %i dh/dx=%lf dh/dy=%lf dh/dz=%lf \n",i,dh1dh7_basic[0][i],dh1dh7_basic[1][i]); -
issm/trunk/src/c/objects/Riftfront.cpp
r1881 r1904 341 341 *contact slip friction. */ 342 342 343 #ifdef _ DEBUG_343 #ifdef _ISSM_DEBUG_ 344 344 printf("Dealing with grid pair (%i,%i)\n",nodes[0]->GetId(),nodes[1]->GetId()); 345 345 #endif … … 350 350 thickness=h[0]; 351 351 352 #ifdef _ DEBUG_352 #ifdef _ISSM_DEBUG_ 353 353 printf("Thickness at grid (%i,%i): %lg\n",nodes[0]->GetId(),nodes[1]->GetID(),thickness); 354 354 #endif … … 446 446 * and we want to avoid zigzagging of the loads, we want lump the loads onto grids, not onto surfaces between grids.:*/ 447 447 448 #ifdef _ DEBUG_448 #ifdef _ISSM_DEBUG_ 449 449 _printf_("Grids (%i,%i) are free of constraints\n",nodes[0]->GetId(),nodes[1]->GetID()); 450 450 #endif -
issm/trunk/src/c/objects/Tria.cpp
r1901 r1904 284 284 285 285 } 286 int Tria::GetId( void){ return id; }286 int Tria::GetId(){ return id; } 287 287 288 288 int Tria::MyRank(void){ … … 1559 1559 GetB(&B[0][0], xyz_list, gauss_l1l2l3); 1560 1560 1561 #ifdef _DEBUG_1562 printf("B for grid1 : [ %lf %lf \n",B[0][0],B[0][1]);1563 printf(" [ %lf %lf \n",B[1][0],B[1][1]);1564 printf(" [ %lf %lf ]\n",B[2][0],B[2][1]);1565 1566 printf("B for grid2 : [ %lf %lf \n",B[0][2],B[0][3]);1567 printf(" [ %lf %lf \n",B[1][2],B[1][3]);1568 printf(" [ %lf %lf ]\n",B[2][2],B[2][3]);1569 1570 printf("B for grid3 : [ %lf %lf \n",B[0][4],B[0][5]);1571 printf(" [ %lf %lf \n",B[1][4],B[1][5]);1572 printf(" [ %lf %lf ]\n",B[2][4],B[2][5]);1573 1574 for (i=0;i<numgrids;i++){1575 printf("Velocity for grid %i %lf %lf\n",i,*(vxvy_list+2*i+0),*(vxvy_list+2*i+1));1576 }1577 #endif1578 1579 1561 /*Multiply B by velocity, to get strain rate: */ 1580 1562 MatrixMultiply( &B[0][0],3,NDOF2*numgrids,0, … … 1665 1647 GetNodalFunctionsDerivativesBasic(&dh1dh2dh3_basic[0][0],xyz_list, gauss_l1l2l3); 1666 1648 1667 #ifdef _ DEBUG_1649 #ifdef _ISSM_ISSM_DEBUG_ 1668 1650 for (i=0;i<3;i++){ 1669 1651 printf("Node %i dh/dx=%lf dh/dy=%lf \n",i,dh1dh2dh3_basic[0][i],dh1dh2dh3_basic[1][i]); … … 1795 1777 GetNodalFunctions(&l1l2l3[0],gauss_l1l2l3); 1796 1778 1797 #ifdef _ DEBUG_1779 #ifdef _ISSM_ISSM_DEBUG_ 1798 1780 for (i=0;i<3;i++){ 1799 1781 printf("Node %i h=%lf \n",i,l1l2l3[i]); … … 2146 2128 /* Get Jacobian determinant: */ 2147 2129 GetJacobianDeterminant2d(&Jdet, &xyz_list[0][0],gauss_l1l2l3); 2148 #ifdef _ DEBUG_2149 printf("Element id %i Jacobian determinant: % lf\n",TriaElementGetID(this),Jdet);2130 #ifdef _ISSM_ISSM_DEBUG_ 2131 printf("Element id %i Jacobian determinant: %g\n",GetId(),Jdet); 2150 2132 #endif 2151 2133 … … 2383 2365 GetParameterValue(&alpha_complement, &alpha_complement_list[0],gauss_l1l2l3); 2384 2366 GetParameterValue(&drag, &k[0],gauss_l1l2l3); 2385 #ifdef _ DEBUG_2367 #ifdef _ISSM_ISSM_DEBUG_ 2386 2368 printf("Drag complement: %20.20lf Drag: %20.20lf\n",alpha_complement,drag); 2387 2369 #endif … … 2390 2372 GetParameterValue(&lambda, &adjx_list[0],gauss_l1l2l3); 2391 2373 GetParameterValue(&mu, &adjy_list[0],gauss_l1l2l3); 2392 #ifdef _ DEBUG_2374 #ifdef _ISSM_ISSM_DEBUG_ 2393 2375 printf("Adjoint vector %20.20lf %20.20lf\n",lambda,mu); 2394 2376 #endif … … 2397 2379 GetParameterValue(&vx, &vx_list[0],gauss_l1l2l3); 2398 2380 GetParameterValue(&vy, &vy_list[0],gauss_l1l2l3); 2399 #ifdef _ DEBUG_2381 #ifdef _ISSM_ISSM_DEBUG_ 2400 2382 printf("Velocity vector %20.20lf %20.20lf\n",vx,vy); 2401 2383 #endif … … 2403 2385 /* Get Jacobian determinant: */ 2404 2386 GetJacobianDeterminant2d(&Jdet, &xyz_list[0][0],gauss_l1l2l3); 2405 #ifdef _ DEBUG_2406 printf("Element id %i Jacobian determinant: %lf\n", TriaElementGetID(this),Jdet);2387 #ifdef _ISSM_ISSM_DEBUG_ 2388 printf("Element id %i Jacobian determinant: %lf\n",GetId(),Jdet); 2407 2389 #endif 2408 2390 … … 2581 2563 GetParameterValue(&alpha_complement, &alpha_complement_list[0],gauss_l1l2l3); 2582 2564 GetParameterValue(&drag, &k[0],gauss_l1l2l3); 2583 #ifdef _ DEBUG_2565 #ifdef _ISSM_ISSM_DEBUG_ 2584 2566 printf("Drag complement: %20.20lf Drag: %20.20lf\n",alpha_complement,drag); 2585 2567 #endif … … 2589 2571 GetParameterValue(&mu, &adjy_list[0],gauss_l1l2l3); 2590 2572 GetParameterValue(&xi, &adjz_list[0],gauss_l1l2l3); 2591 #ifdef _ DEBUG_2573 #ifdef _ISSM_ISSM_DEBUG_ 2592 2574 printf("Adjoint vector %20.20lf %20.20lf\n",lambda,mu); 2593 2575 #endif … … 2597 2579 GetParameterValue(&vy, &vy_list[0],gauss_l1l2l3); 2598 2580 GetParameterValue(&vz, &vz_list[0],gauss_l1l2l3); 2599 #ifdef _ DEBUG_2581 #ifdef _ISSM_ISSM_DEBUG_ 2600 2582 printf("Velocity vector %20.20lf %20.20lf\n",vx,vy); 2601 2583 … … 2610 2592 /* Get Jacobian determinant: */ 2611 2593 GetJacobianDeterminant3d(&Jdet, &xyz_list[0][0],gauss_l1l2l3); 2612 #ifdef _ DEBUG_2613 printf("Element id %i Jacobian determinant: %lf\n", TriaElementGetID(this),Jdet);2594 #ifdef _ISSM_ISSM_DEBUG_ 2595 printf("Element id %i Jacobian determinant: %lf\n",GetId(),Jdet); 2614 2596 #endif 2615 2597 … … 2761 2743 /* Get gaussian points and weights (make this a statically initialized list of points? fstd): */ 2762 2744 GaussTria( &num_gauss, &first_gauss_area_coord, &second_gauss_area_coord, &third_gauss_area_coord, &gauss_weights, 4); 2763 #ifdef _ DEBUG_2745 #ifdef _ISSM_ISSM_DEBUG_ 2764 2746 for (i=0;i<num_gauss;i++){ 2765 2747 printf("Gauss coord %i: %lf %lf %lf Weight: %lf\n",i,*(first_gauss_area_coord+i),*(second_gauss_area_coord+i),*(third_gauss_area_coord+i),*(gauss_weights+i)); … … 2795 2777 /* Get nodal functions value at gaussian point:*/ 2796 2778 GetNodalFunctions(l1l2l3, gauss_l1l2l3); 2797 #ifdef _ DEBUG_2798 _printf_("viscositycomp %g thickness %g dvx [%g %g] dvy [%g %g] dadjx [%g %g] dadjy[%g %g]\n",viscosity_complement,thickness,dvx[0],dvx[1],dvy[0],dvy[1],dadjx[0],dadjx[1],dadjy[0],dadjy[1]);2779 #ifdef _ISSM_ISSM_DEBUG_ 2780 printf("viscositycomp %g thickness %g dvx [%g %g] dvy [%g %g] dadjx [%g %g] dadjy[%g %g]\n",viscosity_complement,thickness,dvx[0],dvx[1],dvy[0],dvy[1],dadjx[0],dadjx[1],dadjy[0],dadjy[1]); 2799 2781 #endif 2800 2782 … … 2931 2913 GaussTria( &num_gauss, &first_gauss_area_coord, &second_gauss_area_coord, &third_gauss_area_coord, &gauss_weights, 2); 2932 2914 2933 #ifdef _ DEBUG_2915 #ifdef _ISSM_ISSM_DEBUG_ 2934 2916 for (i=0;i<num_gauss;i++){ 2935 2917 printf("Gauss coord %i: %lf %lf %lf Weight: %lf\n",i,*(first_gauss_area_coord+i),*(second_gauss_area_coord+i),*(third_gauss_area_coord+i),*(gauss_weights+i)); … … 2947 2929 /* Get Jacobian determinant: */ 2948 2930 GetJacobianDeterminant2d(&Jdet, &xyz_list[0][0],gauss_l1l2l3); 2949 #ifdef _ DEBUG_2950 printf("Element id %i Jacobian determinant: %lf\n", TriaElementGetID(this),Jdet);2931 #ifdef _ISSM_ISSM_DEBUG_ 2932 printf("Element id %i Jacobian determinant: %lf\n",GetId(),Jdet); 2951 2933 #endif 2952 2934 -
issm/trunk/src/c/shared/Exp/DomainOutlineRead.cpp
r1 r1904 60 60 nprof++; 61 61 } 62 #ifdef _ DEBUG_62 #ifdef _ISSM_DEBUG_ 63 63 printf("Number of profiles in domain outline file: %i\n",nprof); 64 64 #endif … … 115 115 116 116 117 #ifdef _ DEBUG_117 #ifdef _ISSM_DEBUG_ 118 118 for (i=0;i<nprof;i++){ 119 119 printf("Profile #%i\n",i); -
issm/trunk/src/c/shared/Sorting/binary_search.cpp
r1 r1904 40 40 else{ 41 41 while((beg <= end) && (*mid != target)){ 42 #ifdef _ DEBUG_42 #ifdef _ISSM_DEBUG_ 43 43 printf("1: %i %i %i\n",*beg,*mid,*(end-1)); 44 44 #endif … … 52 52 mid = beg + (end-beg)/2; //new middle 53 53 } 54 #ifdef _ DEBUG_54 #ifdef _ISSM_DEBUG_ 55 55 printf("2: %i %i %i\n",*beg,*mid,*(end-1)); 56 56 #endif -
issm/trunk/src/c/shared/TriMesh/TriMeshUtils.cpp
r1 r1904 159 159 if (el2!=-1){ 160 160 /*el and el2 are on a segment rift, facing one another, plug them into riftsegments_uncompressed: */ 161 #ifdef _ DEBUG_161 #ifdef _ISSM_DEBUG_ 162 162 printf("Elements %i and %i are on a rift\n",el+1,el2+1); 163 163 #endif … … 184 184 } 185 185 186 #ifdef _ DEBUG_186 #ifdef _ISSM_DEBUG_ 187 187 for (i=0;i<nriftsegs;i++){ 188 188 printf("Elements %i and %i are on a rift, joined by grids %i and %i\n",*(riftsegments+4*i+0)+1,*(riftsegments+4*i+1)+1,*(riftsegments+4*i+2),*(riftsegments+4*i+3)); … … 215 215 /*Build a list of all the elements connected to this grid: */ 216 216 GridElementsList(&GridElements,&NumGridElements,grid,index,nel); 217 #ifdef _ DEBUG_217 #ifdef _ISSM_DEBUG_ 218 218 printf("Connected elements for grid %i\n",grid); 219 219 for (k=0;k<NumGridElements;k++){ … … 230 230 done rotating*/ 231 231 GridElementListOnOneSideOfRift[1]=*(riftsegments+4*segmentnumber+1); 232 #ifdef _ DEBUG_232 #ifdef _ISSM_DEBUG_ 233 233 printf("Starting with elements %i and %i for grid %i\n",GridElementListOnOneSideOfRift[0]+1,GridElementListOnOneSideOfRift[1]+1,grid); 234 234 #endif … … 238 238 * equal to GridElementListOnOneSideOfRift[counter-1]*/ 239 239 for (k=0;k<NumGridElements;k++){ 240 #ifdef _ DEBUG_240 #ifdef _ISSM_DEBUG_ 241 241 printf("k: %i GridElements[k]: %i GridElementListOnOneSideOfRift[counter-1]: %i GridElementListOnOneSideOfRift[counter] %i Neighboor %i\n",k,GridElements[k]+1, 242 242 GridElementListOnOneSideOfRift[counter-1]+1,GridElementListOnOneSideOfRift[counter]+1,IsNeighbor(GridElements[k],GridElementListOnOneSideOfRift[counter],index)); … … 266 266 GridElementListOnOneSideOfRift[l]=GridElementListOnOneSideOfRift[l+1]; 267 267 } 268 #ifdef _ DEBUG_268 #ifdef _ISSM_DEBUG_ 269 269 printf("Grid %i is owned by the following elements on the same side of the rift: \n",grid); 270 270 for (l=0;l<NumGridElementListOnOneSideOfRift;l++){ … … 313 313 for (j=0;j<nsegs;j++){ 314 314 if (*(segments+3*j+2)==(el1+1)){ 315 #ifdef _ DEBUG_315 #ifdef _ISSM_DEBUG_ 316 316 printf("Segment %i is the same as rift segment %i\n",j,i); 317 317 #endif … … 348 348 } 349 349 if (*(segments+3*j+2)==(el2+1)){ 350 #ifdef _ DEBUG_350 #ifdef _ISSM_DEBUG_ 351 351 printf("Segment %i is the same as rift segment %i\n",j,i); 352 352 #endif … … 441 441 int n; 442 442 int el=-1; 443 #ifdef _ DEBUG_443 #ifdef _ISSM_DEBUG_ 444 444 printf("Looking for %lf %lf\n",A,B); 445 445 #endif … … 447 447 if (((*(index+3*n+0)==A) || (*(index+3*n+1)==A) || (*(index+3*n+2)==A) ) && ((*(index+3*n+0)==B) || (*(index+3*n+1)==B) || (*(index+3*n+2)==B))){ 448 448 el=n; 449 #ifdef _ DEBUG_449 #ifdef _ISSM_DEBUG_ 450 450 printf("Found them: %lf %lf %lf\n",*(index+3*n+0),*(index+3*n+1),*(index+3*n+2)); 451 451 #endif … … 938 938 } 939 939 940 #ifdef _ DEBUG_940 #ifdef _ISSM_DEBUG_ 941 941 printf("Tips for rift#%i (%i-%i)\n",i,tip1,tip2); 942 942 #endif … … 977 977 } 978 978 979 #ifdef _ DEBUG_979 #ifdef _ISSM_DEBUG_ 980 980 for (j=0;j<numsegs;j++){ 981 981 printf("%i\n",order[j]); -
issm/trunk/src/c/toolkits/petsc/patches/MatPartition.cpp
r1 r1904 66 66 upper_row--; 67 67 range=upper_row-lower_row+1; 68 #ifdef _ DEBUG_68 #ifdef _ISSM_DEBUG_ 69 69 PetscSynchronizedPrintf(MPI_COMM_WORLD,"My rank %i Range %i",my_rank,range); 70 70 PetscSynchronizedFlush(MPI_COMM_WORLD); … … 88 88 /*Now each node has a node_rows vectors holding which rows they should extract from matrixA. Create an Index Set from node_rows.*/ 89 89 ISCreateGeneral(MPI_COMM_WORLD,count,node_rows,&row_index); 90 #ifdef _ DEBUG_90 #ifdef _ISSM_DEBUG_ 91 91 ISView(row_index,PETSC_VIEWER_STDOUT_WORLD); 92 92 #endif … … 98 98 } 99 99 ISCreateGeneral(MPI_COMM_WORLD,col_partition_vector_size,node_cols,&col_index); 100 #ifdef _ DEBUG_100 #ifdef _ISSM_DEBUG_ 101 101 ISView(col_index,PETSC_VIEWER_STDOUT_WORLD); 102 102 #endif -
issm/trunk/src/c/toolkits/petsc/patches/MatlabMatrixToDoubleMatrix.cpp
r1 r1904 86 86 } 87 87 88 #ifdef _ DEBUG_88 #ifdef _ISSM_DEBUG_ 89 89 for(i=0;i<rows;i++){ 90 90 for(j=0;j<cols;j++){ -
issm/trunk/src/c/toolkits/petsc/patches/MatlabMatrixToPetscMatrix.cpp
r1 r1904 80 80 cols=mxGetN(mxmatrix); 81 81 82 #ifdef _ DEBUG_82 #ifdef _ISSM_DEBUG_ 83 83 for(i=0;i<rows;i++){ 84 84 for(j=0;j<cols;j++){ -
issm/trunk/src/c/toolkits/petsc/patches/PetscMatrixToMatlabMatrix.cpp
r376 r1904 85 85 MatGetRow(matrix,i,&ncols,&columns,&column_values); 86 86 87 #ifdef _ DEBUG_87 #ifdef _ISSM_DEBUG_ 88 88 for(j=0;j<ncols;j++){ 89 89 printf("%i %i: %g\n",i,columns[j],column_values[j]); -
issm/trunk/src/c/toolkits/petsc/patches/VecMerge.cpp
r1 r1904 34 34 VecGetSize(B,&MB); 35 35 36 #ifdef _ DEBUG_36 #ifdef _ISSM_DEBUG_ 37 37 OutputServerMessages(0,0,"\n%s%s\n",STROFFSET,"Row partition vector:"); 38 38 if (my_rank==0){ … … 73 73 VecAssemblyEnd(A); 74 74 75 #ifdef _ DEBUG_75 #ifdef _ISSM_DEBUG_ 76 76 _printf_("Vector B:\n"); 77 77 fflush(stdout); -
issm/trunk/src/c/toolkits/petsc/patches/VecPartition.cpp
r1 r1904 58 58 upper_row--; 59 59 range=upper_row-lower_row+1; 60 #ifdef _ DEBUG_60 #ifdef _ISSM_DEBUG_ 61 61 PetscSynchronizedPrintf(MPI_COMM_WORLD,"My rank %i Range %i\n",my_rank,range); 62 62 PetscSynchronizedFlush(MPI_COMM_WORLD); … … 86 86 } 87 87 88 #ifdef _ DEBUG_88 #ifdef _ISSM_DEBUG_ 89 89 PetscSynchronizedPrintf(MPI_COMM_WORLD,"My rank: %i My count: %i node_rows: %p values: %p\n",my_rank,count,node_rows,values); 90 90 PetscSynchronizedFlush(MPI_COMM_WORLD); … … 123 123 } 124 124 125 #ifdef _ DEBUG_125 #ifdef _ISSM_DEBUG_ 126 126 _printf_("Vector A:\n"); 127 127 fflush(stdout); -
issm/trunk/src/c/toolkits/petsc/patches/VecToMPISerial.cpp
r1 r1904 64 64 if (my_rank==0){ 65 65 MPI_Recv(buffer,3,MPI_INT,i,1,MPI_COMM_WORLD,&status); 66 #ifdef _ DEBUG_66 #ifdef _ISSM_DEBUG_ 67 67 _printf_("Received from node %i: %i-%i\n",buffer[0],buffer[1],buffer[2]); 68 68 #endif -
issm/trunk/src/c/toolkits/plapack/patches/CyclicalFactorization.cpp
r1439 r1904 38 38 *pnprows=nprows; 39 39 *pnpcols=npcols; 40 #ifdef _ DEBUG_40 #ifdef _ISSM_DEBUG_ 41 41 _printf_("Decomposition: %i-%i\n",nprows,npcols); 42 42 #endif … … 56 56 for (i=0;i<input;i++){ 57 57 SmallestPrimeFactor(&prime_factor,*(decomp+i)); 58 #ifdef _ DEBUG_58 #ifdef _ISSM_DEBUG_ 59 59 _printf_("Smallest prime factor for term %i : %i\n",i,prime_factor); 60 60 #endif … … 68 68 } 69 69 } 70 #ifdef _ DEBUG_70 #ifdef _ISSM_DEBUG_ 71 71 _printf_("Prime factor decomposition for integer %i: \n",input); 72 72 for(i=0;i<*pdecomp_size;i++){ -
issm/trunk/src/c/toolkits/plapack/patches/PlapackInvertMatrix.cpp
r831 r1904 119 119 PLA_API_end(); 120 120 121 #ifdef _ DEBUG_121 #ifdef _ISSM_DEBUG_ 122 122 PLA_Global_show("Matrix A",a," %lf","Done with A"); 123 123 MatView(*A,PETSC_VIEWER_STDOUT_WORLD); … … 131 131 PlapackToPetsc(inv_A,local_mA,local_nA,mA,nA,type,a,templ,nprows,npcols,nb); 132 132 133 #ifdef _ DEBUG_133 #ifdef _ISSM_DEBUG_ 134 134 PLA_Global_show("Inverse of A",a," %lf","Done..."); 135 135 MatView(*inv_A,PETSC_VIEWER_STDOUT_WORLD); -
issm/trunk/src/m/classes/@model/model.m
r1899 r1904 202 202 md.element_debug=0; 203 203 md.element_debugid=NaN; 204 md.mem_debug=0; 204 205 205 206 %Results fields -
issm/trunk/src/m/classes/public/BuildQueueingScriptGeneric.m
r1790 r1904 4 4 % Usage: 5 5 % BuildQueueingScriptGeneric(md,executionpath,codepath) 6 7 global ISSM_DIR 6 8 7 9 %Open queuing script file … … 15 17 fprintf(fid,'#!/bin/sh\n'); 16 18 fprintf(fid,'rm -rf %s/%s.lock\n',executionpath,md.name); 19 20 if md.mem_debug==0, 17 21 fprintf(fid,'mpirun -np %i %s/%s.exe %s %s.bin %s.outbin %s.lock 2> %s.errlog >%s.outlog & ',md.np,codepath,AnalysisTypeFromEnum(md.analysis_type),executionpath,md.name,md.name,md.name,md.name,md.name); 22 else 23 fprintf(fid,'LD_PRELOAD=%s mpirun -np %i %s --leak-check=full %s/%s.exe %s %s.bin %s.outbin %s.lock 2> %s.errlog >%s.outlog & ',[ISSM_DIR '/externalpackages/valgrind/install/lib/libmpidebug.so'],md.np,[ISSM_DIR '/externalpackages/valgrind/install/bin/valgrind'],codepath,AnalysisTypeFromEnum(md.analysis_type),executionpath,md.name,md.name,md.name,md.name,md.name); 24 end 25 18 26 fclose(fid); -
issm/trunk/src/mex/ContourToMesh/ContourToMesh.cpp
r292 r1904 82 82 } 83 83 84 #ifdef _ DEBUG_84 #ifdef _ISSM_DEBUG_ 85 85 for(i=0;i<numcontours;i++){ 86 86 printf("\nContour echo: contour number %i / %i\n",i+1,numcontours); -
issm/trunk/src/mex/ContourToNodes/ContourToNodes.cpp
r1103 r1904 75 75 } 76 76 77 #ifdef _ DEBUG_77 #ifdef _ISSM_DEBUG_ 78 78 for(i=0;i<numcontours;i++){ 79 79 printf("\nContour echo: contour number %i / %i\n",i+1,numcontours); -
issm/trunk/src/mex/TriMesh/TriMesh.cpp
r1130 r1904 98 98 } 99 99 100 #ifdef _ DEBUG_100 #ifdef _ISSM_DEBUG_ 101 101 printf("Domain name: %s\n",domainname); 102 102 printf("Rift name: %s\n",riftname); … … 122 122 } 123 123 124 #ifdef _ DEBUG_124 #ifdef _ISSM_DEBUG_ 125 125 printf("# points in domain outline: %i\n",nprof); 126 126 #endif … … 137 137 138 138 139 #ifdef _ DEBUG_139 #ifdef _ISSM_DEBUG_ 140 140 printf("# points in rift outline: %i\n",numrifts); 141 141 #endif -
issm/trunk/src/mex/TriMeshProcessRifts/TriMeshProcessRifts.cpp
r1805 r1904 142 142 } 143 143 144 #ifdef _ DEBUG_144 #ifdef _ISSM_DEBUG_ 145 145 printf("Index: \n"); 146 146 for (i=0;i<nel;i++){ -
issm/trunk/src/mex/TriMeshRefine/TriMeshRefine.cpp
r1 r1904 160 160 161 161 162 #ifdef _ DEBUG_162 #ifdef _ISSM_DEBUG_ 163 163 /*printf("Index: \n"); 164 164 for (i=0;i<nel;i++){
Note:
See TracChangeset
for help on using the changeset viewer.