source: issm/trunk/src/c/solutions/ResetBoundaryConditions.cpp@ 13975

Last change on this file since 13975 was 13975, checked in by Mathieu Morlighem, 12 years ago

merged trunk-jpl and trunk for revision 13974

File size: 1021 bytes
Line 
1/*!\file: ResetBoundaryConditions.cpp
2 * \brief: change boundary conditions of a model, using a solution vector from another analysis
3 */
4
5#include "../classes/objects/objects.h"
6#include "../modules/modules.h"
7#include "../io/io.h"
8#include "../EnumDefinitions/EnumDefinitions.h"
9
10void ResetBoundaryConditions(FemModel* femmodel, int analysis_type){
11
12 /*variables: */
13 Vector<IssmDouble>* yg = NULL;
14 Nodes *nodes = NULL;
15
16 if(VerboseSolution()) _pprintLine_(" updating boundary conditions...");
17
18 /*set current analysis: */
19 femmodel->SetCurrentConfiguration(analysis_type);
20
21 /*recover nodes: */
22 nodes=femmodel->nodes;
23
24 /*retrieve boundary conditions from element inputs :*/
25 GetSolutionFromInputsx( &yg, femmodel->elements,femmodel->nodes, femmodel->vertices,femmodel->loads, femmodel->materials, femmodel->parameters);
26
27 /*update spcs using this new vector of constraints: */
28 UpdateDynamicConstraintsx(femmodel->constraints,femmodel->nodes,femmodel->parameters,yg);
29
30 /*Free ressources:*/
31 delete yg;
32}
Note: See TracBrowser for help on using the repository browser.