Changeset 420
- Timestamp:
- 05/14/09 08:54:40 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/ModelProcessorx/DiagnosticStokes/CreateElementsNodesAndMaterialsDiagnosticStokes.cpp
r394 r420 423 423 ModelFetchData((void**)&model->gridonbed,NULL,NULL,model_handle,"gridonbed","Matrix","Mat"); 424 424 ModelFetchData((void**)&model->gridonsurface,NULL,NULL,model_handle,"gridonsurface","Matrix","Mat"); 425 ModelFetchData((void**)&model->gridonstokes,NULL,NULL,model_handle,"gridons urface","Matrix","Mat");426 ModelFetchData((void**)&model->borderstokes,NULL,NULL,model_handle," gridonsurface","Matrix","Mat");425 ModelFetchData((void**)&model->gridonstokes,NULL,NULL,model_handle,"gridonstokes","Matrix","Mat"); 426 ModelFetchData((void**)&model->borderstokes,NULL,NULL,model_handle,"borderstokes","Matrix","Mat"); 427 427 428 428 … … 477 477 /*set single point constraints.: */ 478 478 /*On a 3d mesh, in stokes formualtions, only stokes grids are free, the others are frozen: */ 479 if (model->gridonstokes[i]){480 for(k=1;k<=node_numdofs;k++){481 node->FreezeDof(k);482 }483 }484 479 if (model->borderstokes[i]){ 485 480 //freeze everything except pressure … … 487 482 node->FreezeDof(2); 488 483 node->FreezeDof(3); 484 } 485 else if (model->gridonstokes[i]==0){ 486 for(k=1;k<=node_numdofs;k++){ 487 node->FreezeDof(k); 488 } 489 489 } 490 490
Note:
See TracChangeset
for help on using the changeset viewer.