Skip to content

Commit

Permalink
Merge pull request #111 from streeve/fixup_spelling
Browse files Browse the repository at this point in the history
fixup: file endings and spelling
  • Loading branch information
streeve authored Oct 21, 2024
2 parents fa6e8d9 + 400d70f commit ea20f2f
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
*log
*pdf
*DS_Store
*~
*~
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ repos:
- id: clang-format
types_or: [c++]
args: ["-style=file", "-i"]

- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
args: ["-w"]
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2 changes: 1 addition & 1 deletion doc/flip/explicit_single_phase/flip.bib
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ @article{brackbill_jcp86
volume = {65},
journal = {Journal of Computational Physics},
doi = {10.1016/0021-9991(86)90211-1}
}
}
8 changes: 4 additions & 4 deletions doc/flip/explicit_single_phase/flip_3d_chart.tex
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
\item $\ui$,$\uio$,$\uiz$ velocity, updated velocity, previous velocity
\item $\uit$ $\theta$-weighted velocity
\end{itemize}
{\large \bf Auxillary variable} %defined at the center of cell
{\large \bf Auxiliary variable} %defined at the center of cell
\begin{itemize}
\item $\Delta t$ time step
\item $\theta$ coefficient of time integration scheme, $\frac{1}{2} \le \theta \le 1$
Expand All @@ -238,7 +238,7 @@
%\clearpage
%\noindent{\large \bf Algorithm}
%\begin{enumerate}
%\item compute mapping, jacobian of mapping, volume and geometric coefficient of cell. Note that this is only first order independent of particle shapefunction since it relates only transformation betweeen physical and reference frame, which is linear function
%\item compute mapping, jacobian of mapping, volume and geometric coefficient of cell. Note that this is only first order independent of particle shapefunction since it relates only transformation between physical and reference frame, which is linear function
% \noindent
% \begin{align*}
% N &=
Expand Down Expand Up @@ -549,7 +549,7 @@
\clearpage
\noindent{\large \bf Algorithm}
\begin{enumerate}
\item compute mapping, jacobian of mapping, volume and geometric coefficient of cell. Note that this is only first order independent of particle shapefunction since it relates only transformation betweeen physical and reference frame, which is linear function
\item compute mapping, jacobian of mapping, volume and geometric coefficient of cell. Note that this is only first order independent of particle shapefunction since it relates only transformation between physical and reference frame, which is linear function
\noindent
\begin{align*}
N &=
Expand Down Expand Up @@ -869,7 +869,7 @@
% \item $\pcp = N\left( \frac{1}{h_x}(x_p - x_v) \right)N\left( \frac{1}{h_y}(y_p - y_v) \right)N\left( \frac{1}{h_z}(z_p - z_v)\right)$
\end{itemize}

%\item compute geometric coefficient, so that momentum is presserved between phsycal and reference frame. Note that this is only first order independent of particle shapefunction since it relates only transformation betweeen physical and reference frame, which is linear function
%\item compute geometric coefficient, so that momentum is presserved between phsycal and reference frame. Note that this is only first order independent of particle shapefunction since it relates only transformation between physical and reference frame, which is linear function
%\begin{itemize}
% \item \begin{equation}
% \dic = \int \nabla s_v dV / \Vc =
Expand Down
2 changes: 1 addition & 1 deletion src/Picasso_APIC.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ KOKKOS_INLINE_FUNCTION void p2g(
distance( Dim::K ) = sd.d[Dim::K][k];

// Compute the action of B_p on the distance scaled by the
// intertial tensor scaling factor.
// inertial tensor scaling factor.
auto D_p_inv_B_p_d = D_p_inv * B_p * distance;

// Weight times mass.
Expand Down
4 changes: 2 additions & 2 deletions src/Picasso_BatchedLinearAlgebra.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1798,7 +1798,7 @@ struct VectorView
KOKKOS_DEFAULTED_FUNCTION
VectorView() = default;

// Vector construtor.
// Vector constructor.
KOKKOS_INLINE_FUNCTION
VectorView( const Vector<T, N>& v )
: _d( v.data() )
Expand Down Expand Up @@ -3464,7 +3464,7 @@ struct QuaternionView
KOKKOS_DEFAULTED_FUNCTION
QuaternionView() = default;

// Vector construtor.
// Vector constructor.
KOKKOS_INLINE_FUNCTION
QuaternionView( const Quaternion<T>& q )
: _d( q.data() )
Expand Down
4 changes: 2 additions & 2 deletions src/Picasso_FacetGeometry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ struct FacetGeometryData
// into the facet array for each surface.
Kokkos::View<int*, MemorySpace> surface_offsets;

// Local id of the volume the representes the global axis-aligned bounding
// Local id of the volume the represents the global axis-aligned bounding
// box.
int global_bounding_volume_id;

Expand Down Expand Up @@ -510,7 +510,7 @@ KOKKOS_FUNCTION bool pointFacetProjection( const float x[3], const float r[3],
float y[3] )
{
// Build the system of equations to solve for intersection. Fire the ray
// in the Y direction - this choice is arbitary.
// in the Y direction - this choice is arbitrary.
Mat3<float> A;
Vec3<float> b;
for ( int i = 0; i < 3; ++i )
Expand Down
2 changes: 1 addition & 1 deletion src/Picasso_ParticleLevelSet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class ParticleLevelSet
input color is negative then all particles will be used in the level set
regardless of color.
\param inputs Level set settings.
\param mesh The mesh over which to build the signed distnace function.
\param mesh The mesh over which to build the signed distance function.
\param color The particle color over which to build the level set. Use
-1 if the level set is to be built over all particles.
*/
Expand Down
2 changes: 1 addition & 1 deletion unit_test/tstLevelSetRedistance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ TEST( TEST_CATEGORY, scaled_sphere_redistance_test )
// };

// // Test. The tolerance here is large because of the degenerate geometric
// // features. We will need to revist this in the future.
// // features. We will need to revisit this in the future.
// runTest( phi_r, phi_r, 5.0 );
// }

Expand Down
2 changes: 1 addition & 1 deletion unit_test/tstMarchingCubes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ TEST( TEST_CATEGORY, scaled_sphere_redistance_test )
// };

// // Test. The tolerance here is large because of the degenerate geometric
// // features. We will need to revist this in the future.
// // features. We will need to revisit this in the future.
// runTest( phi_r, "box_good_guess_mc_mesh.stl" );
// }

Expand Down

0 comments on commit ea20f2f

Please sign in to comment.