99#include <aero/AeroContainer.h>
1010#include <NaluEnv.h>
1111#include <NaluParsingHelper.h>
12- #ifdef NALU_USES_OPENFAST_FSI
12+ #ifdef NALU_USES_OPENFAST
1313#include "aero/fsi/OpenfastFSI.h"
1414#endif
1515#include <FieldTypeDef.h>
@@ -20,15 +20,15 @@ namespace nalu {
2020void
2121AeroContainer ::clean_up ()
2222{
23- #ifdef NALU_USES_OPENFAST_FSI
23+ #ifdef NALU_USES_OPENFAST
2424 if (has_fsi ())
2525 fsiContainer_ -> end_openfast ();
2626#endif
2727}
2828
2929AeroContainer ::~AeroContainer ()
3030{
31- #ifdef NALU_USES_OPENFAST_FSI
31+ #ifdef NALU_USES_OPENFAST
3232 if (has_fsi ()) {
3333 delete fsiContainer_ ;
3434 }
@@ -49,7 +49,7 @@ AeroContainer::AeroContainer(const YAML::Node& node) : fsiContainer_(nullptr)
4949 // std::vector<const YAML::Node*> foundFsi;
5050 // NaluParsingHelper::find_nodes_given_key("openfast_fsi", node, foundFsi);
5151 if (node ["openfast_fsi" ]) {
52- #ifdef NALU_USES_OPENFAST_FSI
52+ #ifdef NALU_USES_OPENFAST
5353 // if (foundFsi.size() != 1)
5454 // throw std::runtime_error(
5555 // "look_ahead_and_create::error: Too many openfast_fsi blocks");
@@ -88,7 +88,7 @@ AeroContainer::setup(double timeStep, std::shared_ptr<stk::mesh::BulkData> bulk)
8888 if (has_actuators ()) {
8989 actuatorModel_ .setup (timeStep , * bulk_ );
9090 }
91- #ifdef NALU_USES_OPENFAST_FSI
91+ #ifdef NALU_USES_OPENFAST
9292 if (has_fsi ()) {
9393 fsiContainer_ -> setup (timeStep , bulk_ );
9494 }
@@ -101,7 +101,7 @@ AeroContainer::init(double currentTime, double restartFrequency)
101101 if (has_actuators ()) {
102102 actuatorModel_ .init (* bulk_ );
103103 }
104- #ifdef NALU_USES_OPENFAST_FSI
104+ #ifdef NALU_USES_OPENFAST
105105 if (has_fsi ()) {
106106 fsiContainer_ -> initialize (restartFrequency , currentTime );
107107 }
122122AeroContainer ::update_displacements (
123123 const double currentTime , bool updateCC , bool predict )
124124{
125- #ifdef NALU_USES_OPENFAST_FSI
125+ #ifdef NALU_USES_OPENFAST
126126 if (has_fsi ()) {
127127 NaluEnv ::self ().naluOutputP0 ()
128128 << "Calling update displacements inside AeroContainer" << std ::endl ;
141141AeroContainer ::predict_model_time_step (const double currentTime )
142142{
143143 (void )currentTime ;
144- #ifdef NALU_USES_OPENFAST_FSI
144+ #ifdef NALU_USES_OPENFAST
145145 if (has_fsi ()) {
146146 fsiContainer_ -> predict_struct_timestep (currentTime );
147147 }
@@ -153,7 +153,7 @@ AeroContainer::predict_model_time_step(const double currentTime)
153153void
154154AeroContainer ::advance_model_time_step (const double currentTime )
155155{
156- #ifdef NALU_USES_OPENFAST_FSI
156+ #ifdef NALU_USES_OPENFAST
157157 if (has_fsi ()) {
158158 fsiContainer_ -> advance_struct_timestep (currentTime );
159159 }
@@ -165,7 +165,7 @@ AeroContainer::advance_model_time_step(const double currentTime)
165165void
166166AeroContainer ::compute_div_mesh_velocity ()
167167{
168- #ifdef NALU_USES_OPENFAST_FSI
168+ #ifdef NALU_USES_OPENFAST
169169 if (has_fsi ()) {
170170 fsiContainer_ -> compute_div_mesh_velocity ();
171171 }
@@ -176,7 +176,7 @@ const stk::mesh::PartVector
176176AeroContainer ::fsi_parts ()
177177{
178178 stk ::mesh ::PartVector all_part_vec ;
179- #ifdef NALU_USES_OPENFAST_FSI
179+ #ifdef NALU_USES_OPENFAST
180180 if (has_fsi ()) {
181181 auto n_turbines = fsiContainer_ -> get_nTurbinesGlob ();
182182 for (auto i_turb = 0 ; i_turb < n_turbines ; i_turb ++ ) {
@@ -193,7 +193,7 @@ const stk::mesh::PartVector
193193AeroContainer ::fsi_bndry_parts ()
194194{
195195 stk ::mesh ::PartVector all_bndry_part_vec ;
196- #ifdef NALU_USES_OPENFAST_FSI
196+ #ifdef NALU_USES_OPENFAST
197197 if (has_fsi ()) {
198198 auto n_turbines = fsiContainer_ -> get_nTurbinesGlob ();
199199 for (auto i_turb = 0 ; i_turb < n_turbines ; i_turb ++ ) {
@@ -211,7 +211,7 @@ const std::vector<std::string>
211211AeroContainer ::fsi_bndry_part_names ()
212212{
213213 std ::vector < std ::string > bndry_part_names ;
214- #ifdef NALU_USES_OPENFAST_FSI
214+ #ifdef NALU_USES_OPENFAST
215215 if (has_fsi ()) {
216216 auto n_turbines = fsiContainer_ -> get_nTurbinesGlob ();
217217 for (auto i_turb = 0 ; i_turb < n_turbines ; i_turb ++ ) {
@@ -228,7 +228,7 @@ AeroContainer::fsi_bndry_part_names()
228228double
229229AeroContainer ::openfast_accumulated_time ()
230230{
231- #ifdef NALU_USES_OPENFAST_FSI
231+ #ifdef NALU_USES_OPENFAST
232232 if (has_fsi ())
233233 return fsiContainer_ -> total_openfastfsi_execution_time ();
234234 else
@@ -240,7 +240,7 @@ AeroContainer::openfast_accumulated_time()
240240double
241241AeroContainer ::nalu_fsi_accumulated_time ()
242242{
243- #ifdef NALU_USES_OPENFAST_FSI
243+ #ifdef NALU_USES_OPENFAST
244244 if (has_fsi ())
245245 return fsiContainer_ -> total_nalu_fsi_execution_time ();
246246 else
0 commit comments