Rev | Line | |
---|
[4053] | 1 | /*!\file ControlConstrainInputx
|
---|
| 2 | * \brief: Y=Y+aX operation on inputs.
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | #include "./ControlConstrainInputx.h"
|
---|
| 6 | #include "../../shared/shared.h"
|
---|
| 7 | #include "../../include/include.h"
|
---|
| 8 | #include "../../toolkits/toolkits.h"
|
---|
| 9 | #include "../../EnumDefinitions/EnumDefinitions.h"
|
---|
| 10 |
|
---|
| 11 | void ControlConstrainInputx(DataSet* elements,DataSet* nodes,DataSet* vertices,DataSet* loads,DataSet* materials,Parameters* parameters,int control_type,double cm_min, double cm_max){
|
---|
| 12 |
|
---|
| 13 | /*intermediary:*/
|
---|
| 14 | int i;
|
---|
| 15 |
|
---|
| 16 | /*some early returns: */
|
---|
| 17 | if(isnan(cm_min) & isnan(cm_max))return;
|
---|
| 18 |
|
---|
| 19 | /*First, get elements and nodes configured: */
|
---|
| 20 | elements->Configure(elements,loads, nodes,vertices, materials,parameters);
|
---|
| 21 |
|
---|
| 22 | /*Go through elemnets, and ask to carry out the ControlConstrain operation on inputs: */
|
---|
| 23 | for(i=0;i<elements->Size();i++){
|
---|
| 24 | Element* element=(Element*)elements->GetObjectByOffset(i);
|
---|
| 25 | element->ControlConstrainInput(control_type,cm_min,cm_max);
|
---|
| 26 | }
|
---|
| 27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.