Skip to content

Commit

Permalink
adding _HAVE_PML per-processor definition and updating VS2022 project…
Browse files Browse the repository at this point in the history
… files
  • Loading branch information
aschellenberg74 committed Aug 17, 2023
1 parent c39a9e7 commit 42a05ef
Show file tree
Hide file tree
Showing 23 changed files with 802 additions and 74 deletions.
8 changes: 6 additions & 2 deletions SRC/actor/objectBroker/FEM_ObjectBrokerAllClasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,10 @@
#include "UWelements/Brick8FiberOverlay.h"
#include "EmbeddedBeamInterfaceL.h"

#ifdef _HAVE_PML
#include "PML/PML2D.h"
#include "PML/PML3D.h"
#endif

#include "UP-ucsd/Nine_Four_Node_QuadUP.h"
#include "UP-ucsd/BrickUP.h"
Expand Down Expand Up @@ -866,18 +868,20 @@ FEM_ObjectBrokerAllClasses::getNewElement(int classTag)

case ELE_TAG_Quad4FiberOverlay:
return new Quad4FiberOverlay(); //Amin Pakzad

case ELE_TAG_Brick8FiberOverlay:
return new Brick8FiberOverlay(); //Amin Pakzad

case ELE_TAG_EmbeddedBeamInterfaceL:
return new EmbeddedBeamInterfaceL(); //Amin Pakzad


#ifdef _HAVE_PML
case ELE_TAG_PML2D:
return new PML2D();

case ELE_TAG_PML3D:
return new PML3D();
#endif

case ELE_TAG_BeamContact2D:
return new BeamContact2D();
Expand Down
64 changes: 36 additions & 28 deletions SRC/element/TclElementCommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,12 @@ extern void *OPS_QuadBeamEmbedContact(void);
extern void *OPS_TripleFrictionPendulum(void);
extern void *OPS_TripleFrictionPendulumX(void);
extern void *OPS_Truss2(void);

#ifdef _HAVE_PML
extern void *OPS_PML3D(void);
extern void *OPS_PML2D(void);
#endif

extern void *OPS_CorotTruss2(void);
extern void *OPS_ZeroLengthImpact3D(void);
extern void *OPS_HDR(void);
Expand Down Expand Up @@ -162,6 +166,7 @@ extern void* OPS_Beam2dDamage(void);
extern void* OPS_BeamColumn2DwLHNMYS_Damage(void);
extern void* OPS_BeamColumn3DwLHNMYS(void);
#endif

extern void *OPS_ShellMITC4Thermal(void);//Added by L.Jiang [SIF]
extern void *OPS_ShellNLDKGQThermal(void);//Added by L.Jiang [SIF]
extern void *OPS_CatenaryCableElement(void);
Expand Down Expand Up @@ -536,19 +541,23 @@ TclModelBuilderElementCommand(ClientData clientData, Tcl_Interp *interp,
opserr << "TclElementCommand -- unable to create element of type : " << argv[1] << endln;
return TCL_ERROR;
}
} else if ((strcmp(argv[1],"PML") == 0) || (strcmp(argv[1],"pml")) == 0) {
Element *theEle = 0;
ID info;
if (OPS_GetNDM() == 2)
theEle = (Element *)OPS_PML2D();
else
theEle = (Element *)OPS_PML3D();
if (theEle != 0)
theElement = theEle;
else {
opserr << "TclElementCommand -- unable to create element of type : " << argv[1] << endln;
return TCL_ERROR;
}
}
#ifdef _HAVE_PML
else if ((strcmp(argv[1], "PML") == 0) || (strcmp(argv[1], "pml")) == 0) {
Element* theEle = 0;
ID info;
if (OPS_GetNDM() == 2)
theEle = (Element*)OPS_PML2D();
else
theEle = (Element*)OPS_PML3D();
if (theEle != 0)
theElement = theEle;
else {
opserr << "TclElementCommand -- unable to create element of type : " << argv[1] << endln;
return TCL_ERROR;
}
}
#endif
/* } else if (strcmp(argv[1], "gradientInelasticBeamColumn") == 0) {
Element *theEle = 0;
Expand All @@ -564,9 +573,8 @@ TclModelBuilderElementCommand(ClientData clientData, Tcl_Interp *interp,
return TCL_ERROR;
}
}*/

#if defined(_HAVE_LHNMYS) || defined(OPSDEF_ELEMENT_LHNMYS)
} else if (strcmp(argv[1],"beamColumn2DwLHNMYS") == 0) {
else if (strcmp(argv[1],"beamColumn2DwLHNMYS") == 0) {
Element *theEle = 0;
ID info;
theEle = (Element *)OPS_BeamColumn2DwLHNMYS();
Expand Down Expand Up @@ -599,23 +607,23 @@ TclModelBuilderElementCommand(ClientData clientData, Tcl_Interp *interp,
return TCL_ERROR;
}

} else if (strcmp(argv[1],"beamColumn3DwLHNMYS") == 0) {
Element *theEle = 0;
ID info;
theEle = (Element *)OPS_BeamColumn3DwLHNMYS();
if (theEle != 0)
theElement = theEle;
else {
opserr << "TclElementCommand -- unable to create element of type : " << argv[1] << endln;
return TCL_ERROR;
}

}
else if (strcmp(argv[1], "beamColumn3DwLHNMYS") == 0) {
Element* theEle = 0;
ID info;
theEle = (Element*)OPS_BeamColumn3DwLHNMYS();
if (theEle != 0)
theElement = theEle;
else {
opserr << "TclElementCommand -- unable to create element of type : " << argv[1] << endln;
return TCL_ERROR;
}
}
#endif

// Beginning of WheelRail element TCL command
//Added by Quan Gu and Yongdou Liu, et al. on 2018/10/31

} else if((strcmp(argv[1], "WheelRail") == 0)) {
else if((strcmp(argv[1], "WheelRail") == 0)) {
// ------------------------------add------------------------------------------
int eleArgStart = 1;
int result = TclModelBuilder_addWheelRail(clientData, interp, argc, argv,
Expand Down
4 changes: 2 additions & 2 deletions Win32/proj/actor/actor.vcxproj

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions Win32/proj/analysis/analysis.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<Optimization>Disabled</Optimization>
<AdditionalIncludeDirectories>..\..\..\src\optimization\domain;..\..\..\src\optimization\domain\component;..\..\..\src\domain\pattern;..\..\..\src\coordTransformation;..\..\..\src\api;..\..\..\src\tagged\storage;..\..\..\src\tagged;..\..\..\src\analysis\integrator;..\..\..\src\handler;..\..\..\src\domain\domain\single;..\..\..\src\convergenceTest;..\..\..\src\analysis\analysis;..\..\..\src\recorder;..\..\..\src\analysis\algorithm;..\..\..\src\analysis\algorithm\domainDecompAlgo;..\..\..\src\analysis\algorithm\eigenAlgo;..\..\..\src\analysis\algorithm\equiSolnAlgo;..\..\..\src\analysis\algorithm\equiSolnAlgo\accelerator;..\..\..\src\system_of_eqn;..\..\..\src\system_of_eqn\eigenSOE;..\..\..\src\system_of_eqn\linearSOE;..\..\..\src\system_of_eqn\linearSOE\fullGEN;..\..\..\src\system_of_eqn\linearSOE\sparseGEN;..\..\..\src\graph\graph;..\..\..\src\graph\numberer;..\..\..\src\analysis\numberer;..\..\..\src\analysis\fe_ele\transformation;..\..\..\src\analysis\fe_ele\lagrange;..\..\..\src\analysis\fe_ele\penalty;..\..\..\src\actor\objectBroker;..\..\..\src\actor\channel;..\..\..\src\utility;..\..\..\src\domain\subdomain;..\..\..\src\domain\constraints;..\..\..\src\domain\component;..\..\..\src\domain\node;..\..\..\src\element;..\..\..\src\analysis\dof_grp;..\..\..\src\matrix;..\..\..\src\analysis\model\simple;..\..\..\src\domain\domain;..\..\..\src\analysis\model;..\..\..\src;..\..\..\src\actor\actor;..\..\..\src\analysis\handler;..\..\..\src\analysis\fe_ele;..\..\..\src\nDarray;..\..\..\src\reliability\domain\components;..\..\..\src\reliability\domain\filter;..\..\..\src\reliability\domain\modulatingFunction;..\..\..\src\reliability\domain\performanceFunction;..\..\..\src\reliability\domain\spectrum;..\..\..\src\reliability\fesensitivity;..\..\..\other\CSPARSE;c:\Program Files (x86)\tcl;c:\Program Files (x86)\tcl\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>..\..\..\src\optimization\domain;..\..\..\src\optimization\domain\component;..\..\..\src\domain\pattern;..\..\..\src\coordTransformation;..\..\..\src\api;..\..\..\src\analysis\algorithm\equiSolnAlgo\accelerator;..\..\..\src\tagged\storage;..\..\..\src\tagged;..\..\..\src\analysis\integrator;..\..\..\src\analysis\algorithm\domainDecompAlgo;..\..\..\src\analysis\algorithm\eigenAlgo;..\..\..\src\handler;..\..\..\src\domain\domain\single;..\..\..\src\convergenceTest;..\..\..\src\analysis\analysis;..\..\..\src\recorder;..\..\..\src\analysis\algorithm\equiSolnAlgo;..\..\..\src\analysis\algorithm;..\..\..\src\system_of_eqn;..\..\..\src\system_of_eqn\eigenSOE;..\..\..\src\system_of_eqn\linearSOE;..\..\..\src\system_of_eqn\linearSOE\fullGEN;..\..\..\src\system_of_eqn\linearSOE\sparseGEN;..\..\..\src\graph\graph;..\..\..\src\graph\numberer;..\..\..\src\analysis\numberer;..\..\..\src\analysis\fe_ele\transformation;..\..\..\src\analysis\fe_ele\lagrange;..\..\..\src\analysis\fe_ele\penalty;..\..\..\src\actor\objectBroker;..\..\..\src\actor\channel;..\..\..\src\utility;..\..\..\src\domain\subdomain;..\..\..\src\domain\constraints;..\..\..\src\domain\component;..\..\..\src\domain\node;..\..\..\src\element;..\..\..\src\analysis\dof_grp;..\..\..\src\matrix;..\..\..\src\analysis\model\simple;..\..\..\src\domain\domain;..\..\..\src\analysis\model;..\..\..\src;..\..\..\src\actor\actor;..\..\..\src\analysis\handler;..\..\..\src\analysis\fe_ele;..\..\..\src\nDarray;..\..\..\src\reliability\domain\components;..\..\..\src\reliability\domain\filter;..\..\..\src\reliability\domain\modulatingFunction;..\..\..\src\reliability\domain\performanceFunction;..\..\..\src\reliability\domain\spectrum;..\..\..\src\reliability\fesensitivity;..\..\..\other\CSPARSE;c:\Program Files (x86)\tcl;c:\Program Files (x86)\tcl\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>_DEBUG;WIN32;_LIB;_RELIABILITY;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
<RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
Expand Down Expand Up @@ -80,7 +80,7 @@
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
<OmitFramePointers>true</OmitFramePointers>
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
<AdditionalIncludeDirectories>..\..\..\src\optimization\domain;..\..\..\src\optimization\domain\component;..\..\..\src\domain\pattern;..\..\..\src\coordTransformation;..\..\..\src\api;..\..\..\src\tagged\storage;..\..\..\src\tagged;..\..\..\src\analysis\integrator;..\..\..\src\handler;..\..\..\src\domain\domain\single;..\..\..\src\convergenceTest;..\..\..\src\analysis\analysis;..\..\..\src\recorder;..\..\..\src\analysis\algorithm;..\..\..\src\analysis\algorithm\domainDecompAlgo;..\..\..\src\analysis\algorithm\eigenAlgo;..\..\..\src\analysis\algorithm\equiSolnAlgo;..\..\..\src\analysis\algorithm\equiSolnAlgo\accelerator;..\..\..\src\system_of_eqn;..\..\..\src\system_of_eqn\eigenSOE;..\..\..\src\system_of_eqn\linearSOE;..\..\..\src\system_of_eqn\linearSOE\fullGEN;..\..\..\src\system_of_eqn\linearSOE\sparseGEN;..\..\..\src\graph\graph;..\..\..\src\graph\numberer;..\..\..\src\analysis\numberer;..\..\..\src\analysis\fe_ele\transformation;..\..\..\src\analysis\fe_ele\lagrange;..\..\..\src\analysis\fe_ele\penalty;..\..\..\src\actor\objectBroker;..\..\..\src\actor\channel;..\..\..\src\utility;..\..\..\src\domain\subdomain;..\..\..\src\domain\constraints;..\..\..\src\domain\component;..\..\..\src\domain\node;..\..\..\src\element;..\..\..\src\analysis\dof_grp;..\..\..\src\matrix;..\..\..\src\analysis\model\simple;..\..\..\src\domain\domain;..\..\..\src\analysis\model;..\..\..\src;..\..\..\src\actor\actor;..\..\..\src\analysis\handler;..\..\..\src\analysis\fe_ele;..\..\..\src\nDarray;..\..\..\src\reliability\domain\components;..\..\..\src\reliability\domain\filter;..\..\..\src\reliability\domain\modulatingFunction;..\..\..\src\reliability\domain\performanceFunction;..\..\..\src\reliability\domain\spectrum;..\..\..\src\reliability\fesensitivity;..\..\..\other\CSPARSE;c:\Program Files (x86)\tcl;c:\Program Files (x86)\tcl\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>..\..\..\src\optimization\domain;..\..\..\src\optimization\domain\component;..\..\..\src\domain\pattern;..\..\..\src\coordTransformation;..\..\..\src\api;..\..\..\src\analysis\algorithm\equiSolnAlgo\accelerator;..\..\..\src\tagged\storage;..\..\..\src\tagged;..\..\..\src\analysis\integrator;..\..\..\src\analysis\algorithm\domainDecompAlgo;..\..\..\src\analysis\algorithm\eigenAlgo;..\..\..\src\handler;..\..\..\src\domain\domain\single;..\..\..\src\convergenceTest;..\..\..\src\analysis\analysis;..\..\..\src\recorder;..\..\..\src\analysis\algorithm\equiSolnAlgo;..\..\..\src\analysis\algorithm;..\..\..\src\system_of_eqn;..\..\..\src\system_of_eqn\eigenSOE;..\..\..\src\system_of_eqn\linearSOE;..\..\..\src\system_of_eqn\linearSOE\fullGEN;..\..\..\src\system_of_eqn\linearSOE\sparseGEN;..\..\..\src\graph\graph;..\..\..\src\graph\numberer;..\..\..\src\analysis\numberer;..\..\..\src\analysis\fe_ele\transformation;..\..\..\src\analysis\fe_ele\lagrange;..\..\..\src\analysis\fe_ele\penalty;..\..\..\src\actor\objectBroker;..\..\..\src\actor\channel;..\..\..\src\utility;..\..\..\src\domain\subdomain;..\..\..\src\domain\constraints;..\..\..\src\domain\component;..\..\..\src\domain\node;..\..\..\src\element;..\..\..\src\analysis\dof_grp;..\..\..\src\matrix;..\..\..\src\analysis\model\simple;..\..\..\src\domain\domain;..\..\..\src\analysis\model;..\..\..\src;..\..\..\src\actor\actor;..\..\..\src\analysis\handler;..\..\..\src\analysis\fe_ele;..\..\..\src\nDarray;..\..\..\src\reliability\domain\components;..\..\..\src\reliability\domain\filter;..\..\..\src\reliability\domain\modulatingFunction;..\..\..\src\reliability\domain\performanceFunction;..\..\..\src\reliability\domain\spectrum;..\..\..\src\reliability\fesensitivity;..\..\..\other\CSPARSE;c:\Program Files (x86)\tcl;c:\Program Files (x86)\tcl\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>NDEBUG;WIN32;_LIB;_RELIABILITY;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
Expand Down Expand Up @@ -118,7 +118,9 @@
<ClCompile Include="..\..\..\SRC\analysis\integrator\AlphaOSGeneralized_TP.cpp" />
<ClCompile Include="..\..\..\SRC\analysis\integrator\AlphaOS_TP.cpp" />
<ClCompile Include="..\..\..\SRC\analysis\integrator\EQPath.cpp" />
<ClCompile Include="..\..\..\SRC\analysis\integrator\ExplicitDifference.cpp" />
<ClCompile Include="..\..\..\SRC\analysis\integrator\GimmeMCK.cpp" />
<ClCompile Include="..\..\..\SRC\analysis\integrator\HarmonicSteadyState.cpp" />
<ClCompile Include="..\..\..\SRC\analysis\integrator\HHTExplicit_TP.cpp" />
<ClCompile Include="..\..\..\SRC\analysis\integrator\HHTGeneralizedExplicit_TP.cpp" />
<ClCompile Include="..\..\..\SRC\analysis\integrator\HHTGeneralized_TP.cpp" />
Expand Down Expand Up @@ -233,7 +235,9 @@
<ClInclude Include="..\..\..\SRC\analysis\integrator\AlphaOSGeneralized_TP.h" />
<ClInclude Include="..\..\..\SRC\analysis\integrator\AlphaOS_TP.h" />
<ClInclude Include="..\..\..\SRC\analysis\integrator\EQPath.h" />
<ClInclude Include="..\..\..\SRC\analysis\integrator\ExplicitDifference.h" />
<ClInclude Include="..\..\..\SRC\analysis\integrator\GimmeMCK.h" />
<ClInclude Include="..\..\..\SRC\analysis\integrator\HarmonicSteadyState.h" />
<ClInclude Include="..\..\..\SRC\analysis\integrator\HHTExplicit_TP.h" />
<ClInclude Include="..\..\..\SRC\analysis\integrator\HHTGeneralizedExplicit_TP.h" />
<ClInclude Include="..\..\..\SRC\analysis\integrator\HHTGeneralized_TP.h" />
Expand Down
12 changes: 12 additions & 0 deletions Win32/proj/analysis/analysis.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,12 @@
<ClCompile Include="..\..\..\SRC\analysis\integrator\StagedNewmark.cpp">
<Filter>integrator</Filter>
</ClCompile>
<ClCompile Include="..\..\..\SRC\analysis\integrator\ExplicitDifference.cpp">
<Filter>integrator</Filter>
</ClCompile>
<ClCompile Include="..\..\..\SRC\analysis\integrator\HarmonicSteadyState.cpp">
<Filter>integrator</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\..\SRC\analysis\analysis\Analysis.h">
Expand Down Expand Up @@ -721,5 +727,11 @@
<ClInclude Include="..\..\..\SRC\analysis\integrator\StagedNewmark.h">
<Filter>integrator</Filter>
</ClInclude>
<ClInclude Include="..\..\..\SRC\analysis\integrator\ExplicitDifference.h">
<Filter>integrator</Filter>
</ClInclude>
<ClInclude Include="..\..\..\SRC\analysis\integrator\HarmonicSteadyState.h">
<Filter>integrator</Filter>
</ClInclude>
</ItemGroup>
</Project>
Loading

0 comments on commit 42a05ef

Please sign in to comment.