Changeset 4237


Ignore:
Timestamp:
06/25/10 14:56:58 (15 years ago)
Author:
Mathieu Morlighem
Message:

fixed convergence problem (B and n were not loaded into matice leading to negative viscosity)

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

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/Container/Inputs.cpp

    r4042 r4237  
    401401        /*Compute the 3d Strain Rate (6 components):
    402402         *
    403          * epsilon=[exx eyy ezz exy exz euz]
     403         * epsilon=[exx eyy ezz exy exz eyz]
    404404         */
    405405
     
    460460        /*Compute the 3d Blatter/PattynStrain Rate (5 components):
    461461         *
    462          * epsilon=[exx eyy exy exz euz]
     462         * epsilon=[exx eyy exy exz eyz]
    463463         *
    464464         * with exz=1/2 du/dz
  • issm/trunk/src/c/modules/ModelProcessorx/CreateElementsVerticesAndMaterials.cpp

    r4236 r4237  
    3838        IoModelFetchData(&iomodel->upperelements,NULL,NULL,iomodel_handle,"upperelements");
    3939        IoModelFetchData(&iomodel->lowerelements,NULL,NULL,iomodel_handle,"lowerelements");
     40        IoModelFetchData(&iomodel->rheology_B,NULL,NULL,iomodel_handle,"rheology_B");
     41        IoModelFetchData(&iomodel->rheology_n,NULL,NULL,iomodel_handle,"rheology_n");
    4042       
    4143        /*Create elements and materials: */
     
    5759        xfree((void**)&iomodel->upperelements);
    5860        xfree((void**)&iomodel->lowerelements);
     61        xfree((void**)&iomodel->rheology_B);
     62        xfree((void**)&iomodel->rheology_n);
    5963
    6064        /*Add new constrant material property tgo materials, at the end: */
  • issm/trunk/src/c/objects/Materials/Matice.cpp

    r4091 r4237  
    231231        }
    232232
     233        /*Checks in debugging mode*/
     234        ISSMASSERT(B>0);
     235        ISSMASSERT(n>0);
     236        ISSMASSERT(viscosity>0);
     237
    233238        /*Return: */
    234239        *pviscosity=viscosity;
     
    291296                }
    292297        }
     298
     299        /*Checks in debugging mode*/
     300        ISSMASSERT(B>0);
     301        ISSMASSERT(n>0);
     302        ISSMASSERT(viscosity3d>0);
    293303
    294304        /*Assign output pointers:*/
     
    356366        }
    357367
     368        /*Checks in debugging mode*/
     369        ISSMASSERT(B>0);
     370        ISSMASSERT(n>0);
     371        ISSMASSERT(viscosity3d>0);
     372
    358373        /*Assign output pointers:*/
    359374        *pviscosity3d=viscosity3d;
     
    405420                viscosity_complement=4.5*pow((double)10,(double)17);
    406421        }
     422
     423        /*Checks in debugging mode*/
     424        ISSMASSERT(B>0);
     425        ISSMASSERT(n>0);
     426        ISSMASSERT(viscosity_complement>0);
    407427               
    408428        /*Return: */
Note: See TracChangeset for help on using the changeset viewer.