source: issm/trunk-jpl/src/c/classes/Constraints/Constraint.h@ 18388

Last change on this file since 18388 was 18388, checked in by Mathieu Morlighem, 11 years ago

NEW: extended penlaty method to all Spc classes

File size: 713 bytes
RevLine 
[9002]1/*!\file: Constraint.h
2 * \brief abstract class for Constraint object
[9285]3 * This class is a place holder for constraints
[9002]4 * It is derived from Object, so DataSets can contain them.
5 */
6
7#ifndef _CONSTRAINT_H_
8#define _CONSTRAINT_H_
9
10/*Headers:*/
[12365]11/*{{{*/
[12200]12class Nodes;
[15067]13#include "../../datastructures/datastructures.h"
[15012]14#include "../../toolkits/toolkits.h"
[9002]15/*}}}*/
16
17class Constraint: public Object{
18
19 public:
[13623]20
[9002]21 virtual ~Constraint(){};
22 virtual void ConstrainNode(Nodes* nodes,Parameters* parameters)=0;
[18344]23 virtual void PenaltyDofAndValue(int* dof,IssmDouble* value,Nodes* nodes,Parameters* parameters)=0;
[9002]24 virtual bool InAnalysis(int analysis_type)=0;
[18388]25 virtual void ActivatePenaltyMethod(void)=0;
[9002]26
27};
28#endif
Note: See TracBrowser for help on using the repository browser.