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 af5e6ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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 af5e6ae

Please sign in to comment.