Changeset 24108


Ignore:
Timestamp:
07/29/19 05:26:20 (6 years ago)
Author:
Mathieu Morlighem
Message:

CHG: minor

Location:
issm/trunk-jpl/src/c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/Contours.h

    r15067 r24108  
    2222
    2323        /*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;
    3128
    3229        /*If domainname is an empty string, return empty dataset*/
     
    3532        }
    3633        else{
    37                 ExpRead(&nprof,&profnvertices,&pprofx, &pprofy, NULL,domainname);
     34                ExpRead<doubletype>(&nprof,&profnvertices,&pprofx, &pprofy, NULL,domainname);
    3835        }
    3936
    4037        /*now create dataset of contours: */
    41         domain=new Contours();
     38        Contours *domain=new Contours();
    4239
    4340        for(int i=0;i<nprof;i++){
  • issm/trunk-jpl/src/c/modules/SystemMatricesx/SystemMatricesx.cpp

    r23644 r24108  
    120120        //Kff->AllocationInfo();
    121121        //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        }
    122143
    123144        /*cleanu up and assign output pointers: */
  • issm/trunk-jpl/src/c/solutionsequences/solutionsequence_glads_nonlinear.cpp

    r24080 r24108  
    7777
    7878                /*Converged if inner loop converged in one solution*/
    79                 //if(count_in==1) converged_out = true;
     79                if(count_in==1) converged_out = true;
    8080
    8181                /*Increase count: */
Note: See TracChangeset for help on using the changeset viewer.