Skip to content

Commit 27a33d7

Browse files
committed
Fix spelling errors
1 parent 856668f commit 27a33d7

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

palace/drivers/electrostaticsolver.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ ElectrostaticSolver::Solve(const std::vector<std::unique_ptr<Mesh>> &mesh) const
5353
ErrorIndicator indicator;
5454

5555
// Main loop over terminal boundaries.
56-
Mpi::Print("\nComputing electrostatic fields for {:d} terminal boundar{}\n", n_step,
57-
(n_step > 1) ? "ies" : "y");
56+
Mpi::Print("\nComputing electrostatic fields for {:d} terminal {}\n", n_step,
57+
(n_step > 1) ? "boundaries" : "boundary");
5858
int step = 0;
5959
auto t0 = Timer::Now();
6060
for (const auto &[idx, data] : laplace_op.GetSources())
@@ -78,7 +78,7 @@ ElectrostaticSolver::Solve(const std::vector<std::unique_ptr<Mesh>> &mesh) const
7878
E = 0.0;
7979
Grad.AddMult(V[step], E, -1.0);
8080

81-
// Measurment and printing.
81+
// Measurement and printing.
8282
auto total_domain_energy = post_op.MeasurePrintAll(step, V[step], E, idx);
8383

8484
// Calculate and record the error indicators.
@@ -147,7 +147,7 @@ void ElectrostaticSolver::PostprocessTerminals(
147147
using VT = Units::ValueType;
148148
using fmt::format;
149149

150-
// Write capactance matrix data.
150+
// Write capacitance matrix data.
151151
auto PrintMatrix = [&terminal_sources, this](const std::string &file,
152152
const std::string &name,
153153
const std::string &unit,

palace/drivers/magnetostaticsolver.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ MagnetostaticSolver::Solve(const std::vector<std::unique_ptr<Mesh>> &mesh) const
5454
ErrorIndicator indicator;
5555

5656
// Main loop over current source boundaries.
57-
Mpi::Print("\nComputing magnetostatic fields for {:d} source boundar{}\n", n_step,
58-
(n_step > 1) ? "ies" : "y");
57+
Mpi::Print("\nComputing magnetostatic fields for {:d} source {}\n", n_step,
58+
(n_step > 1) ? "boundaries" : "boundary");
5959
int step = 0;
6060
auto t0 = Timer::Now();
6161
for (const auto &[idx, data] : curlcurl_op.GetSurfaceCurrentOp())
@@ -80,10 +80,10 @@ MagnetostaticSolver::Solve(const std::vector<std::unique_ptr<Mesh>> &mesh) const
8080
// Compute B = ∇ x A on the true dofs.
8181
Curl.Mult(A[step], B);
8282

83-
// Save excitaiton current for inductance matrix calculation.
83+
// Save excitation current for inductance matrix calculation.
8484
I_inc[step] = data.GetExcitationCurrent();
8585

86-
// Measurment and printing.
86+
// Measurement and printing.
8787
auto total_domain_energy = post_op.MeasurePrintAll(step, A[step], B, idx);
8888

8989
// Calculate and record the error indicators.

palace/models/postoperator.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ PostOperator<solver_t>::PostOperator(const IoData &iodata, fem_op_t<solver_t> &f
104104
}
105105

106106
// If we write paraview fields, initialize paraview files and dependant measurements. We
107-
// currently don't use the dependant grid functions for non-paraview measurments, so only
107+
// currently don't use the dependant grid functions for non-paraview measurements, so only
108108
// initialize if needed.
109109
if (solver_t == config::ProblemData::Type::DRIVEN)
110110
{
@@ -128,7 +128,7 @@ PostOperator<solver_t>::PostOperator(const IoData &iodata, fem_op_t<solver_t> &f
128128
}
129129
InitializeParaviewDataCollection();
130130

131-
// Initilize CSV files for measurements.
131+
// Initialize CSV files for measurements.
132132
post_op_csv.InitializeCSVDataCollection();
133133
}
134134

@@ -636,7 +636,7 @@ void PostOperator<solver_t>::MeasureLumpedPorts() const
636636
}
637637
else
638638
{
639-
// Compute current from P = V I^* since there is no frequency & characterisitc
639+
// Compute current from P = V I^* since there is no frequency & characteristic
640640
// impedance of the lumped element.
641641
vi.I = (std::abs(vi.V) > 0.0) ? std::conj(vi.P / vi.V) : 0.0;
642642
}

palace/models/postoperator.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class PostOperator
178178
// PostOperatorCSV<solver_t> is a class that contains csv tables and printers of
179179
// measurements. Conceptually, its members could be a part of this class, like the
180180
// ParaView fields and functions above. It has been separated out for code readability. To
181-
// achieve this, it is has a pointer back to it's "parent" PostOperator class and is a
181+
// achieve this, it is has a pointer back to its "parent" PostOperator class and is a
182182
// friend class so it can access the the private measurement_cache and references of the
183183
// system from fem_op.
184184
friend PostOperatorCSV<solver_t>;
@@ -230,7 +230,7 @@ class PostOperator
230230
double abs_S_ij = 0.0;
231231
double arg_S_ij = 0.0;
232232

233-
// Energies (currently only for lumped port).
233+
// Energies (currently only for lumped port)
234234
double inductor_energy = 0.0; // E_ind = ∑_j 1/2 L_j I_mj².
235235
double capacitor_energy = 0.0; // E_cap = ∑_j 1/2 C_j V_mj².
236236

@@ -254,11 +254,11 @@ class PostOperator
254254
std::complex<double> freq = {0.0, 0.0}; // driven || eigenvalue.
255255

256256
// Modulation factor for input excitation:
257-
// I_inc(t) = J(t) I_in for transient
258-
// I_inc(omega) = I_in for driven, so Jcoeff_excitation = 1.0
259-
double Jcoeff_excitation = 1.0; // transient || driven.
257+
// - I_inc(t) = J(t) I_in, for transient
258+
// - I_inc(omega) = I_in, for driven so that Jcoeff_excitation = 1.0
259+
double Jcoeff_excitation = 1.0; // transient || driven
260260

261-
// Eigenmode data including error from solver // eigenmode
261+
// Eigenmode data including error from solver
262262
double eigenmode_Q = 0.0;
263263
double error_bkwd = 0.0;
264264
double error_abs = 0.0;

palace/models/postoperatorcsv.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ class PostOperatorCSV
2525

2626
// Cache Index for printing of primary "index" column.
2727
double current_idx_value_dimensionful;
28-
// Cache current row index being written
28+
// Cache current row index being written.
2929
int current_idx_row;
30-
// Cache column block (for future multi-excitation)
30+
// Cache column block (for future multi-excitation).
3131
int current_column_block;
3232

33-
// These are all std::optional since: should only be instantiated on the root mpi process,
34-
// they should only be written if the data is non-empty.
33+
// These are all std::optional since: (a) should only be instantiated on the root mpi
34+
// process, (b) they should only be written if the data is non-empty.
3535

3636
// Base (all solvers)
3737
std::optional<TableWithCSVFile> domain_E;

0 commit comments

Comments
 (0)