Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clang_format update #973

Merged
merged 2 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ DAGMC Changelog
Next version
====================

**Changed:**
* Update formating of few files to comply with clang-format (#937)

v3.2.4
====================

Expand Down
4 changes: 2 additions & 2 deletions src/geant4/app/src/ExN01UserScoreWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ void ExN01UserScoreWriter::DumpAllQuantitiesToFile(const G4String& fileName,
rval = MBI()->tag_set_data(tag_handle, &(mesh_elements[idx]), 1,
&result);
} // z
} // y
} // x
} // y
} // x
}

// save the file
Expand Down
10 changes: 4 additions & 6 deletions src/make_watertight/CheckWatertight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,21 +314,19 @@ moab::ErrorCode CheckWatertight::check_mesh_for_watertightness(
the_coords_and_id[j].z2 = endpt_coords[2];
}
std::cout << " edge of surf " << the_coords_and_id[j].surf_id
<< " unmatched: "
<< " (" << the_coords_and_id[j].x1 << ","
<< " unmatched: " << " (" << the_coords_and_id[j].x1 << ","
<< the_coords_and_id[j].y1 << "," << the_coords_and_id[j].z1
<< ") (" << the_coords_and_id[j].x2 << ","
<< the_coords_and_id[j].y2 << "," << the_coords_and_id[j].z2
<< ")"
<< " v0=" << the_coords_and_id[j].vert1
<< ")" << " v0=" << the_coords_and_id[j].vert1
<< " v1=" << the_coords_and_id[j].vert2 << " j=" << j
<< " k=" << k << std::endl;
}
unmatched_counter++;
break;
} // k loop
} // j loop
} // volume loop
} // j loop
} // volume loop

if (!test) {
// print time and summary
Expand Down
2 changes: 1 addition & 1 deletion src/make_watertight/Zip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ moab::ErrorCode Zip::remove_inverted_tris(moab::Tag normal_tag,
}

} // loop until the entire surface has attempted to be refaceted
} // loop over each patch of inverted tris
} // loop over each patch of inverted tris

if (failures_occur) {
if (debug)
Expand Down
2 changes: 1 addition & 1 deletion src/make_watertight/tests/test_classes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class MakeWatertightTest : public ::testing::Test {
virtual void SetUp();
void reload_mesh();
virtual void TearDown();
virtual void setFilename(){};
virtual void setFilename() {};

// make sure the expected number of entities with dimension are present
moab::ErrorCode check_num_ents(int ent_dimension, int expected_num);
Expand Down
6 changes: 2 additions & 4 deletions src/overlap_check/app/overlap_check.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,13 @@ int main(int argc, char* argv[]) {
MB_CHK_SET_ERR(rval, "Failed to load file: " << filename);

if (points_per_tri_edge == 0) {
std::cout << "NOTICE: "
<< "\n";
std::cout << "NOTICE: " << "\n";
std::cout
<< "\t Performing overlap check using triangle vertex locations only."
<< "\n"
<< "\t Use the '-p' option to check more points on the triangle edges."
<< "\n"
<< "\t Run '$ overlap_check --help' for more information."
<< "\n\n";
<< "\t Run '$ overlap_check --help' for more information." << "\n\n";
}

std::cout << "Running overlap check:" << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion src/overlap_check/test/overlap_check_test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class OverlapTest : public ::testing::Test {
protected:
virtual void SetUp() override;
virtual void TearDown() override;
virtual void SetFilename(){};
virtual void SetFilename() {};

std::string filename;

Expand Down
4 changes: 2 additions & 2 deletions src/tally/Tally.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ bool Tally::get_energy_bin(double energy, unsigned int& ebin) {
break;
}
} // end for
} // end else in bounds and >1 energy bin
} // end if in bounds
} // end else in bounds and >1 energy bin
} // end if in bounds

return bin_exists;
}
Expand Down
Loading