Changeset 982


Ignore:
Timestamp:
06/13/09 19:29:20 (16 years ago)
Author:
seroussi
Message:

Bbar was a bad idea

Location:
issm/trunk/src/c/ModelProcessorx
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/ModelProcessorx/DiagnosticHoriz/CreateElementsNodesAndMaterialsDiagnosticHoriz.cpp

    r976 r982  
    7575        int    matice_mid;
    7676        double matice_B;
    77         double matice_Bbar;
    7877        double matice_n;
    7978       
     
    313312                                B_avg=B_avg/3;
    314313                                matice_B=B_avg;
    315                                 matice_Bbar=B_avg;
    316314                                matice_n=(double)*(model->n+i);
    317315                               
    318316                                /*Create matice using its constructor:*/
    319                                 matice= new Matice(matice_mid,matice_B,matice_Bbar,matice_n);
     317                                matice= new Matice(matice_mid,matice_B,matice_n);
    320318               
    321319                                /*Add matice element to materials dataset: */
     
    441439                                B_avg=B_avg/6;
    442440                                matice_B= B_avg;
    443                                 matice_Bbar= B_avg;
    444441                                matice_n=(double)*(model->n+i);
    445442               
    446443                                /*Create matice using its constructor:*/
    447                                 matice= new Matice(matice_mid,matice_B,matice_Bbar,matice_n);
     444                                matice= new Matice(matice_mid,matice_B,matice_n);
    448445               
    449446                                /*Add matice element to materials dataset: */
  • issm/trunk/src/c/ModelProcessorx/DiagnosticHutter/CreateElementsNodesAndMaterialsDiagnosticHutter.cpp

    r976 r982  
    5555        int    matice_mid;
    5656        double matice_B;
    57         double matice_Bbar;
    5857        double matice_n;
    5958
     
    249248                                matice_mid=i+1; //same as the material id from the geom2 elements.
    250249                                matice_B=model->B[i];   
    251                                 matice_Bbar=model->B[i];       
    252250                                matice_n=(double)model->n[1]; //n defined on elements not grids, so take the first value everywhere
    253251                       
    254252                                /*Create matice using its constructor:*/
    255                                 matice= new Matice(matice_mid,matice_B,matice_Bbar,matice_n);
     253                                matice= new Matice(matice_mid,matice_B,matice_n);
    256254       
    257255                                /*Add matice element to materials dataset: */
     
    303301                                        matice_mid=i+1; //same as the material id from the geom2 elements.
    304302                                        matice_B=model->B[i];   
    305                                         matice_Bbar=model->B[i];       
    306303                                        matice_n=(double)model->n[1]; //n defined on elements not grids, so take the first value everywhere
    307304                               
    308305                                        /*Create matice ubeam its constructor:*/
    309                                         matice= new Matice(matice_mid,matice_B,matice_Bbar,matice_n);
     306                                        matice= new Matice(matice_mid,matice_B,matice_n);
    310307               
    311308                                        /*Add matice element to materials dataset: */
  • issm/trunk/src/c/ModelProcessorx/DiagnosticStokes/CreateElementsNodesAndMaterialsDiagnosticStokes.cpp

    r976 r982  
    5454        int    matice_mid;
    5555        double matice_B;
    56         double matice_Bbar;
    5756        double matice_n;
    5857       
     
    286285                        B_avg=B_avg/6;
    287286                        matice_B= B_avg;
    288                         matice_Bbar= B_avg;
    289287                        matice_n=(double)*(model->n+i);
    290288                       
     
    292290       
    293291                                /*Create matice using its constructor:*/
    294                                 matice= new Matice(matice_mid,matice_B,matice_Bbar,matice_n);
     292                                matice= new Matice(matice_mid,matice_B,matice_n);
    295293               
    296294                                /*Add matice element to materials dataset: */
  • issm/trunk/src/c/ModelProcessorx/DiagnosticVert/CreateElementsNodesAndMaterialsDiagnosticVert.cpp

    r976 r982  
    5353        int    matice_mid;
    5454        double matice_B;
    55         double matice_Bbar;
    5655        double matice_n;
    5756       
     
    248247
    249248                /*Create matice using its constructor:*/
    250                 matice= new Matice(matice_mid,matice_B,matice_Bbar,matice_n);
     249                matice= new Matice(matice_mid,matice_B,matice_n);
    251250
    252251                /*Add matice element to materials dataset: */
  • issm/trunk/src/c/ModelProcessorx/Melting/CreateElementsNodesAndMaterialsMelting.cpp

    r976 r982  
    5353        int    matice_mid;
    5454        double matice_B;
    55         double matice_Bbar;
    5655        double matice_n;
    5756       
     
    257256                B_avg=B_avg/6;
    258257                matice_B= B_avg;
    259                 matice_Bbar= B_avg;
    260258                matice_n=(double)*(model->n+i);
    261259
    262260                /*Create matice using its constructor:*/
    263                 matice= new Matice(matice_mid,matice_B,matice_Bbar,matice_n);
     261                matice= new Matice(matice_mid,matice_B,matice_n);
    264262
    265263                /*Add matice element to materials dataset: */
  • issm/trunk/src/c/ModelProcessorx/Prognostic/CreateElementsNodesAndMaterialsPrognostic.cpp

    r976 r982  
    7575        int    matice_mid;
    7676        double matice_B;
    77         double matice_Bbar;
    7877        double matice_n;
    7978       
  • issm/trunk/src/c/ModelProcessorx/Thermal/CreateElementsNodesAndMaterialsThermal.cpp

    r976 r982  
    5454        int    matice_mid;
    5555        double matice_B;
    56         double matice_Bbar;
    5756        double matice_n;
    5857       
     
    253252                B_avg=B_avg/6;
    254253                matice_B= B_avg;
    255                 matice_Bbar= B_avg;
    256254                matice_n=(double)*(model->n+i);
    257255
    258256                /*Create matice using its constructor:*/
    259                 matice= new Matice(matice_mid,matice_B,matice_Bbar,matice_n);
     257                matice= new Matice(matice_mid,matice_B,matice_n);
    260258
    261259                /*Add matice element to materials dataset: */
Note: See TracChangeset for help on using the changeset viewer.