Last change
on this file since 4112 was 4112, checked in by Eric.Larour, 15 years ago |
Better naming of original and new enum
|
File size:
835 bytes
|
Line | |
---|
1 | /*!\file InputDuplicatex
|
---|
2 | * \brief: duplicte an input inside the elements, onto another, and wipe it off.
|
---|
3 | */
|
---|
4 |
|
---|
5 | #include "./InputDuplicatex.h"
|
---|
6 | #include "../../shared/shared.h"
|
---|
7 | #include "../../include/include.h"
|
---|
8 | #include "../../toolkits/toolkits.h"
|
---|
9 | #include "../../EnumDefinitions/EnumDefinitions.h"
|
---|
10 |
|
---|
11 | void InputDuplicatex(DataSet* elements,DataSet* nodes,DataSet* vertices,DataSet* loads,DataSet* materials,Parameters* parameters,int original_enum, int new_enum){
|
---|
12 |
|
---|
13 | /*intermediary:*/
|
---|
14 | int i;
|
---|
15 |
|
---|
16 | /*First, get elements and nodes configured: */
|
---|
17 | elements->Configure(elements,loads, nodes,vertices, materials,parameters);
|
---|
18 |
|
---|
19 | /*Go through elemnets, and ask to reinitialie the input: */
|
---|
20 | for(i=0;i<elements->Size();i++){
|
---|
21 | Element* element=(Element*)elements->GetObjectByOffset(i);
|
---|
22 | element->InputDuplicate(original_enum,new_enum);
|
---|
23 | }
|
---|
24 |
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.