|
Last change
on this file since 14951 was 14951, checked in by Eric.Larour, 12 years ago |
|
CHG: de-entangle dependencies between Containers and shared/Elements
|
|
File size:
861 bytes
|
| Rev | Line | |
|---|
| [4062] | 1 | /*!\file InputDuplicatex
|
|---|
| [4046] | 2 | * \brief: duplicte an input inside the elements, onto another, and wipe it off.
|
|---|
| [4043] | 3 | */
|
|---|
| 4 |
|
|---|
| [4062] | 5 | #include "./InputDuplicatex.h"
|
|---|
| [4043] | 6 | #include "../../shared/shared.h"
|
|---|
| [14951] | 7 | #include "../../classes/classes.h"
|
|---|
| [4043] | 8 | #include "../../toolkits/toolkits.h"
|
|---|
| 9 | #include "../../EnumDefinitions/EnumDefinitions.h"
|
|---|
| 10 |
|
|---|
| [4218] | 11 | void InputDuplicatex(Elements* elements,Nodes* nodes,Vertices* vertices,Loads* loads,Materials* materials,Parameters* parameters,int original_enum, int new_enum){
|
|---|
| [13622] | 12 |
|
|---|
| [4572] | 13 | /*Go through elemnets, and ask to reinitialie the input: */
|
|---|
| [4043] | 14 | int i;
|
|---|
| 15 | for(i=0;i<elements->Size();i++){
|
|---|
| [13798] | 16 | Element* element=dynamic_cast<Element*>(elements->GetObjectByOffset(i));
|
|---|
| [4112] | 17 | element->InputDuplicate(original_enum,new_enum);
|
|---|
| [4043] | 18 | }
|
|---|
| [4967] | 19 | for(i=0;i<materials->Size();i++){
|
|---|
| 20 | Material* material=(Material*)materials->GetObjectByOffset(i);
|
|---|
| 21 | //material->InputDuplicate(original_enum,new_enum);
|
|---|
| 22 | }
|
|---|
| [4043] | 23 |
|
|---|
| 24 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.