From f02744793e345561c162aaf56818a20abcab5a0f Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 15 Jan 2026 03:40:55 +0000 Subject: [PATCH] Fix copy-paste errors and grammar in comments - CarpetXGPU.wl: Fix incorrect file reference in header - CarpetXPointDesc.wl: Fix incorrect file reference in header - Component.wl: Fix "How would print" -> "How to print" - FiniteDifferenceStencils.wl: Fix "when use" -> "when using" --- codes/CarpetXGPU.wl | 2 +- codes/CarpetXPointDesc.wl | 2 +- src/Component.wl | 2 +- src/stencils/FiniteDifferenceStencils.wl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/codes/CarpetXGPU.wl b/codes/CarpetXGPU.wl index fb975b4..e493699 100644 --- a/codes/CarpetXGPU.wl +++ b/codes/CarpetXGPU.wl @@ -1,6 +1,6 @@ (* ::Package:: *) -(* Carpet.wl, set up functions adapted to Carpet code *) +(* CarpetXGPU.wl, set up functions adapted to CarpetXGPU code *) (* (c) Liwei Ji, 01/2025 *) diff --git a/codes/CarpetXPointDesc.wl b/codes/CarpetXPointDesc.wl index 2308d04..b1062db 100644 --- a/codes/CarpetXPointDesc.wl +++ b/codes/CarpetXPointDesc.wl @@ -1,6 +1,6 @@ (* ::Package:: *) -(* Carpet.wl, set up functions adapted to Carpet code *) +(* CarpetXPointDesc.wl, set up functions adapted to CarpetXPointDesc code *) (* (c) Liwei Ji, 01/2025 *) diff --git a/src/Component.wl b/src/Component.wl index d84073c..eb236f1 100644 --- a/src/Component.wl +++ b/src/Component.wl @@ -66,7 +66,7 @@ PrintComponent[coordinate_, varinfo_, compname_, extrareplacerules_] := PrintComponent::EMode = "PrintMode unrecognized!"; (* - 1. Set components for tensors (How would print them in c/c++ code) + 1. Set components for tensors (How to print them in c/c++ code) 2. Set global map between tensor component and varlist index ( $MapComponentToVarlist ): case1 (start at 'new varlist', in this case, user should be careful when they define varlist) {a00 a01 ... b00 b01 ...}, {e00 e01 ... f00 f01 ...}, ... diff --git a/src/stencils/FiniteDifferenceStencils.wl b/src/stencils/FiniteDifferenceStencils.wl index 195857a..922c5d1 100644 --- a/src/stencils/FiniteDifferenceStencils.wl +++ b/src/stencils/FiniteDifferenceStencils.wl @@ -65,7 +65,7 @@ GetFiniteDifferenceCoefficients::shortSample = "The 'sample' list must have at l Protect[GetFiniteDifferenceCoefficients]; -(* calculate the coefficients used in Derivs thorn when use upwind derivative: +(* calculate the coefficients used in Derivs thorn when using upwind derivative: https://github.com/EinsteinToolkit/CarpetX/blob/main/Derivs/src/derivs.hxx *) GetUpwindCoefficients[sample_?ListQ] := Module[{numPoints, numCoeff, upwind, dnwind, symmCoeffs, antiCoeffs, symm, anti, eqns, coeffs},