diff --git a/include/aero/AeroContainer.h b/include/aero/AeroContainer.h index dc9c069ec..6021ab2bb 100644 --- a/include/aero/AeroContainer.h +++ b/include/aero/AeroContainer.h @@ -39,7 +39,8 @@ class AeroContainer void init(double currentTime, double restartFrequency); void register_nodal_fields( stk::mesh::MetaData& meta, const stk::mesh::PartVector& part_vec); - void update_displacements(const double currentTime, const bool updateCurCoords = true); + void update_displacements( + const double currentTime, const bool updateCurCoords = true); void predict_model_time_step(const double /*currentTime*/); void advance_model_time_step(const double /*currentTime*/); void compute_div_mesh_velocity(); diff --git a/src/Realm.C b/src/Realm.C index a3eb2d3e6..b9327478c 100644 --- a/src/Realm.C +++ b/src/Realm.C @@ -3468,7 +3468,8 @@ Realm::populate_restart(double& timeStepNm1, int& timeStepCount) if (aeroModels_->has_fsi()) { NaluEnv::self().naluOutputP0() - // are we really updating current coordinates? historically and currently not... + // are we really updating current coordinates? historically and + // currently not... << "Aero models - Update displacements and set current coordinates" << std::endl; aeroModels_->update_displacements(restartTime, false); diff --git a/src/aero/fsi/OpenfastFSI.C b/src/aero/fsi/OpenfastFSI.C index 07f5297fb..535fb4a7c 100644 --- a/src/aero/fsi/OpenfastFSI.C +++ b/src/aero/fsi/OpenfastFSI.C @@ -595,7 +595,7 @@ OpenfastFSI::map_displacements(double current_time, bool updateCurCoor) } } - if(updateCurCoor){ + if (updateCurCoor) { auto& meta = bulk_->mesh_meta_data(); const VectorFieldType* modelCoords = meta.get_field(stk::topology::NODE_RANK, "coordinates"); @@ -610,14 +610,14 @@ OpenfastFSI::map_displacements(double current_time, bool updateCurCoor) const auto& bkts = bulk_->get_buckets(stk::topology::NODE_RANK, sel); for (const auto* b : bkts) { - for (const auto node : *b){ + for (const auto node : *b) { for (size_t in = 0; in < b->size(); in++) { double* cc = stk::mesh::field_data(*curCoords, node); double* mc = stk::mesh::field_data(*modelCoords, node); double* cd = stk::mesh::field_data(*displacement, node); - for(int j = 0; j<3; ++j){ + for (int j = 0; j < 3; ++j) { cc[j] = mc[j] + cd[j]; } }