Changeset 607


Ignore:
Timestamp:
05/27/09 08:40:11 (15 years ago)
Author:
seroussi
Message:

added prognostic in penta

Location:
issm/trunk/src/c/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/Penta.cpp

    r595 r607  
    313313                CreateKMatrixSlopeCompute( Kgg,inputs,analysis_type,sub_analysis_type);
    314314        }
     315        else if (analysis_type==PrognosticAnalysisEnum()){
     316               
     317                CreateKMatrixPrognostic( Kgg,inputs,analysis_type,sub_analysis_type);
     318        }
    315319        else if (analysis_type==ThermalAnalysisEnum()){
    316320               
     
    10211025                CreatePVectorSlopeCompute( pg,inputs,analysis_type,sub_analysis_type);
    10221026        }
     1027        else if (analysis_type==PrognosticAnalysisEnum()){
     1028               
     1029                CreatePVectorPrognostic( pg,inputs,analysis_type,sub_analysis_type);
     1030        }
    10231031        else if (analysis_type==ThermalAnalysisEnum()){
    10241032               
     
    24082416
    24092417void Penta::CreatePVectorSlopeCompute( Vec pg, void* inputs, int analysis_type,int sub_analysis_type){
     2418       
     2419        /*Collapsed formulation: */
     2420        Tria*  tria=NULL;
     2421       
     2422        /*Is this element on the bed? :*/
     2423        if(!onbed)return;
     2424
     2425        /*Spawn Tria element from the base of the Penta: */
     2426        tria=(Tria*)SpawnTria(0,1,2); //grids 0, 1 and 2 make the new tria.
     2427        tria->CreatePVector(pg,inputs, analysis_type,sub_analysis_type);
     2428        delete tria;
     2429        return;
     2430}
     2431
     2432#undef __FUNCT__
     2433#define __FUNCT__ "Penta::CreateKMatrixPrognostic"
     2434
     2435void  Penta::CreateKMatrixPrognostic(Mat Kgg,void* inputs,int analysis_type,int sub_analysis_type){
     2436
     2437        /*Collapsed formulation: */
     2438        Tria*  tria=NULL;
     2439       
     2440        /*Is this element on the bed? :*/
     2441        if(!onbed)return;
     2442
     2443        /*Spawn Tria element from the base of the Penta: */
     2444        tria=(Tria*)SpawnTria(0,1,2); //grids 0, 1 and 2 make the new tria.
     2445        tria->CreateKMatrix(Kgg,inputs, analysis_type,sub_analysis_type);
     2446        delete tria;
     2447        return;
     2448
     2449}
     2450
     2451#undef __FUNCT__
     2452#define __FUNCT__ "Penta::CreatePVectorPrognostic"
     2453
     2454void Penta::CreatePVectorPrognostic( Vec pg, void* inputs, int analysis_type,int sub_analysis_type){
    24102455       
    24112456        /*Collapsed formulation: */
  • issm/trunk/src/c/objects/Penta.h

    r586 r607  
    118118                void  CreateKMatrixSlopeCompute(Mat Kgg,void* vinputs,int analysis_type,int sub_analysis_type);
    119119                void  CreatePVectorSlopeCompute( Vec pg, void* vinputs, int analysis_type,int sub_analysis_type);
     120                void  CreateKMatrixPrognostic(Mat Kgg,void* vinputs,int analysis_type,int sub_analysis_type);
     121                void  CreatePVectorPrognostic( Vec pg, void* vinputs, int analysis_type,int sub_analysis_type);
    120122
    121123                void  CreateKMatrixDiagnosticStokes( Mat Kgg, void* vinputs, int analysis_type,int sub_analysis_type);
Note: See TracChangeset for help on using the changeset viewer.