Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
psakievich committed Sep 19, 2023
1 parent 81d682d commit a572c27
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion include/aero/AeroContainer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 2 additions & 1 deletion src/Realm.C
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions src/aero/fsi/OpenfastFSI.C
Original file line number Diff line number Diff line change
Expand Up @@ -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<VectorFieldType>(stk::topology::NODE_RANK, "coordinates");
Expand All @@ -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];
}
}
Expand Down

0 comments on commit a572c27

Please sign in to comment.