Skip to content

Commit

Permalink
Merge pull request #439 from Xiangyu-Hu/fix/typos_in_particles
Browse files Browse the repository at this point in the history
correct the typos in particles
  • Loading branch information
Xiangyu-Hu authored Sep 22, 2023
2 parents d0ca341 + 379c1d7 commit 05c4b50
Show file tree
Hide file tree
Showing 10 changed files with 179 additions and 181 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void VonMisesStress::update(size_t index_i, Real dt)
sqrt(sigmaxx * sigmaxx + sigmayy * sigmayy - sigmaxx * sigmayy + 3.0 * sigmaxy * sigmaxy);
}
//=============================================================================================//
void MidSurfaceVonMisesStressofShells::update(size_t index_i, Real dt)
void MidSurfaceVonMisesStress::update(size_t index_i, Real dt)
{
Matd sigma = mid_surface_cauchy_stress_[index_i];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void VonMisesStress::update(size_t index_i, Real dt)
3.0 * (sigmaxy * sigmaxy + sigmaxz * sigmaxz + sigmayz * sigmayz));
}
//=============================================================================================//
void MidSurfaceVonMisesStressofShells::update(size_t index_i, Real dt)
void MidSurfaceVonMisesStress::update(size_t index_i, Real dt)
{
Matd sigma = mid_surface_cauchy_stress_[index_i];

Expand Down
2 changes: 1 addition & 1 deletion src/shared/io_system/io_plt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void BodyStatesRecordingToPlt::writeWithFileName(const std::string &sequence)
if (body->checkNewlyUpdated())
{
BaseParticles &base_particles = body->getBaseParticles();
base_particles.computeDrivedVariables();
base_particles.computeDerivedVariables();

if (state_recording_)
{
Expand Down
4 changes: 2 additions & 2 deletions src/shared/io_system/io_vtk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void BodyStatesRecordingToVtp::writeWithFileName(const std::string &sequence)
if (body->checkNewlyUpdated())
{
BaseParticles &base_particles = body->getBaseParticles();
base_particles.computeDrivedVariables();
base_particles.computeDerivedVariables();

if (state_recording_)
{
Expand Down Expand Up @@ -92,7 +92,7 @@ void BodyStatesRecordingToVtpString::writeWithFileName(const std::string &sequen
if (body->checkNewlyUpdated())
{
BaseParticles &base_particles = body->getBaseParticles();
base_particles.computeDrivedVariables();
base_particles.computeDerivedVariables();

if (state_recording_)
{
Expand Down
2 changes: 1 addition & 1 deletion src/shared/particles/base_particles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void BaseParticles::writePltFileHeader(std::ofstream &output_file)
};
}
//=================================================================================================//
void BaseParticles::computeDrivedVariables()
void BaseParticles::computeDerivedVariables()
{
for (auto &derived_variable : derived_variables_)
{
Expand Down
2 changes: 1 addition & 1 deletion src/shared/particles/base_particles.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class BaseParticles

template <class DerivedVariableMethod, class... Ts>
void addDerivedVariableToWrite(Ts &&...);
void computeDrivedVariables();
void computeDerivedVariables();
//----------------------------------------------------------------------
// Particle data for sorting
//----------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/shared/particles/particle_sorting.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class QuickSortParticleRange
QuickSortParticleRange(QuickSortParticleRange &range, split)
: comp_(range.comp_), swap_sortable_particle_data_(range.swap_sortable_particle_data_), size_(splitRange(range))
// +1 accounts for the pivot element, which is at its correct place
// already and, therefore, is not included into subranges.
// already and, therefore, is not included into sub-ranges.
,
begin_(range.begin_ + range.size_ + 1)
{
Expand Down
Loading

0 comments on commit 05c4b50

Please sign in to comment.