Changeset 24108
- Timestamp:
- 07/29/19 05:26:20 (6 years ago)
- Location:
- issm/trunk-jpl/src/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/Contours.h
r15067 r24108 22 22 23 23 /*intermediary: */ 24 int nprof; 25 int *profnvertices = NULL; 26 doubletype **pprofx = NULL; 27 doubletype **pprofy = NULL; 28 29 /*output: */ 30 Contours *domain = NULL; 24 int nprof; 25 int *profnvertices = NULL; 26 doubletype **pprofx = NULL; 27 doubletype **pprofy = NULL; 31 28 32 29 /*If domainname is an empty string, return empty dataset*/ … … 35 32 } 36 33 else{ 37 ExpRead (&nprof,&profnvertices,&pprofx, &pprofy, NULL,domainname);34 ExpRead<doubletype>(&nprof,&profnvertices,&pprofx, &pprofy, NULL,domainname); 38 35 } 39 36 40 37 /*now create dataset of contours: */ 41 domain=new Contours();38 Contours *domain=new Contours(); 42 39 43 40 for(int i=0;i<nprof;i++){ -
issm/trunk-jpl/src/c/modules/SystemMatricesx/SystemMatricesx.cpp
r23644 r24108 120 120 //Kff->AllocationInfo(); 121 121 //Kfs->AllocationInfo(); 122 if(analysisenum==GLheightadvectionAnalysisEnum){ 123 PetscViewer viewer; PetscViewerASCIIOpen(PETSC_COMM_WORLD,"KFF.m",&viewer); PetscViewerPushFormat(viewer,PETSC_VIEWER_ASCII_MATLAB); 124 MatView(Kff->pmatrix->matrix,viewer); 125 PetscViewerPopFormat(viewer); 126 PetscViewerDestroy(&viewer); 127 for(int e=0;e<femmodel->elements->Size();e++){ 128 Element* element=xDynamicCast<Element*>(femmodel->elements->GetObjectByOffset(e)); 129 int numdofs; 130 for(int i=0;i<element->GetNumberOfNodes();i++){ 131 numdofs=element->nodes[i]->GetNumberOfDofs(NoneApproximationEnum,FsetEnum); 132 int *doflist = xNew<int>(numdofs); 133 element->nodes[i]->GetDofList(doflist,NoneApproximationEnum,FsetEnum); 134 for(int j=0;j<numdofs;j++){ 135 if(doflist[j]==11796-1){ 136 printf("node: %i, element: %i, element->nodes[i]->Sid: %i \n", i, element->id, element->nodes[i]->Sid()); 137 } 138 } 139 xDelete<int>(doflist); 140 } 141 } 142 } 122 143 123 144 /*cleanu up and assign output pointers: */ -
issm/trunk-jpl/src/c/solutionsequences/solutionsequence_glads_nonlinear.cpp
r24080 r24108 77 77 78 78 /*Converged if inner loop converged in one solution*/ 79 //if(count_in==1) converged_out = true;79 if(count_in==1) converged_out = true; 80 80 81 81 /*Increase count: */
Note:
See TracChangeset
for help on using the changeset viewer.