Skip to content

Commit 16c9280

Browse files
committed
Fix some warnings
1 parent a7e0c33 commit 16c9280

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

palace/drivers/drivensolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ DrivenSolver::Solve(const std::vector<std::unique_ptr<Mesh>> &mesh) const
4141
auto omega = iodata.solver.driven.sample_f;
4242
if (iodata.solver.driven.rst > 0)
4343
{
44-
MFEM_VERIFY(iodata.solver.driven.rst <= omega.size(),
44+
MFEM_VERIFY(iodata.solver.driven.rst <= static_cast<int>(omega.size()),
4545
"\"Restart\": (" << iodata.solver.driven.rst
4646
<< ") is greater than the number of samples ("
4747
<< omega.size() << ")!");

palace/drivers/electrostaticsolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void ElectrostaticSolver::PostprocessTerminals(
163163
output.table["i"] << idx2;
164164

165165
auto &col = output.table[format("i2{}", idx2)];
166-
for (int i = 0; i < terminal_sources.size(); i++)
166+
for (std::size_t i = 0; i < terminal_sources.size(); i++)
167167
{
168168
col << mat(i, j) * scale;
169169
}

palace/drivers/magnetostaticsolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ void MagnetostaticSolver::PostprocessTerminals(
168168
output.table["i"] << idx2;
169169

170170
auto &col = output.table[format("i2{}", idx2)];
171-
for (int i = 0; i < surf_j_op.Size(); i++)
171+
for (std::size_t i = 0; i < surf_j_op.Size(); i++)
172172
{
173173
col << mat(i, j) * scale;
174174
}

palace/utils/geodata.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ inline double GetDistanceFromPoint(const mfem::ParMesh &mesh, int attr, bool bdr
187187
mfem::Array<int> marker(bdr ? mesh.bdr_attributes.Max() : mesh.attributes.Max());
188188
marker = 0;
189189
marker[attr - 1] = 1;
190-
return GetDistanceFromPoint(mesh, marker, bdr, dir);
190+
return GetDistanceFromPoint(mesh, marker, bdr, dir, max);
191191
}
192192

193193
// Helper function to compute the average surface normal for all elements with the given

0 commit comments

Comments
 (0)