source: issm/trunk-jpl/src/c/modules/InputDuplicatex/InputDuplicatex.cpp@ 14999

Last change on this file since 14999 was 14999, checked in by Eric.Larour, 12 years ago

CHG: modules should include shared.h, and that's it.

File size: 810 bytes
RevLine 
[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
[4218]10void InputDuplicatex(Elements* elements,Nodes* nodes,Vertices* vertices,Loads* loads,Materials* materials,Parameters* parameters,int original_enum, int new_enum){
[13622]11
[4572]12 /*Go through elemnets, and ask to reinitialie the input: */
[4043]13 int i;
14 for(i=0;i<elements->Size();i++){
[13798]15 Element* element=dynamic_cast<Element*>(elements->GetObjectByOffset(i));
[4112]16 element->InputDuplicate(original_enum,new_enum);
[4043]17 }
[4967]18 for(i=0;i<materials->Size();i++){
19 Material* material=(Material*)materials->GetObjectByOffset(i);
20 //material->InputDuplicate(original_enum,new_enum);
21 }
[4043]22
23}
Note: See TracBrowser for help on using the repository browser.