Skip to content

Commit

Permalink
Fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
simlapointe committed Nov 11, 2024
1 parent 8ed5f1e commit f1ebc29
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions palace/models/timeoperator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ class TimeDependentFirstOrderOperator : public mfem::TimeDependentOperator
void FormRHS(const Vector &u, Vector &rhs) const
{
Vector u1, u2, rhs1, rhs2;
u1.UseDevice(true); u2.UseDevice(true);
rhs1.UseDevice(true); rhs2.UseDevice(true);
u1.UseDevice(true);
u2.UseDevice(true);
rhs1.UseDevice(true);
rhs2.UseDevice(true);
u.GetSubVector(idx1, u1);
u.GetSubVector(idx2, u2);
rhs.GetSubVector(idx1, rhs1);
Expand Down Expand Up @@ -152,8 +154,10 @@ class TimeDependentFirstOrderOperator : public mfem::TimeDependentOperator
FormRHS(u, RHS);

Vector du1, du2, rhs1, rhs2;
du1.UseDevice(true); du2.UseDevice(true);
rhs1.UseDevice(true); rhs2.UseDevice(true);
du1.UseDevice(true);
du2.UseDevice(true);
rhs1.UseDevice(true);
rhs2.UseDevice(true);
du.GetSubVector(idx1, du1);
du.GetSubVector(idx2, du2);
RHS.GetSubVector(idx1, rhs1);
Expand Down Expand Up @@ -182,8 +186,10 @@ class TimeDependentFirstOrderOperator : public mfem::TimeDependentOperator
FormRHS(u, RHS);

Vector k1, k2, rhs1, rhs2;
k1.UseDevice(true); k2.UseDevice(true);
rhs1.UseDevice(true); rhs2.UseDevice(true);
k1.UseDevice(true);
k2.UseDevice(true);
rhs1.UseDevice(true);
rhs2.UseDevice(true);
k.GetSubVector(idx1, k1);
k.GetSubVector(idx2, k2);
RHS.GetSubVector(idx1, rhs1);
Expand Down Expand Up @@ -225,8 +231,10 @@ class TimeDependentFirstOrderOperator : public mfem::TimeDependentOperator
int SUNImplicitSolve(const Vector &b, Vector &x, double tol) override
{
Vector b1, b2, x1, x2, rhs;
b1.UseDevice(true); b2.UseDevice(true);
x1.UseDevice(true); x2.UseDevice(true);
b1.UseDevice(true);
b2.UseDevice(true);
x1.UseDevice(true);
x2.UseDevice(true);
rhs.UseDevice(true);
b.GetSubVector(idx1, b1);
b.GetSubVector(idx2, b2);
Expand Down

0 comments on commit f1ebc29

Please sign in to comment.