source: issm/trunk/src/c/modules/InputDuplicatex/InputDuplicatex.cpp@ 15396

Last change on this file since 15396 was 15396, checked in by Mathieu Morlighem, 12 years ago

merged trunk-jpl and trunk for revision 15394

File size: 808 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"
[15396]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){
[13975]11
[4572]12 /*Go through elemnets, and ask to reinitialie the input: */
[4043]13 int i;
14 for(i=0;i<elements->Size();i++){
[13975]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);
[15396]20 material->InputDuplicate(original_enum,new_enum);
[4967]21 }
[4043]22
23}
Note: See TracBrowser for help on using the repository browser.