Skip to content

Commit

Permalink
master: speed sacado: fix two integer conversion warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradbell committed Sep 28, 2024
1 parent 806f0c6 commit 242e317
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion speed/sacado/ode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ bool link_ode(
// return values with Y as the dependent variable vector
for(i = 0; i < m; i++)
{ for(j = 0; j < n; j++)
jacobian[ i * n + j ] = Y[i].dx(j);
jacobian[ i * n + j ] = Y[i].dx( int(j) );
}
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion speed/sacado/poly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ bool link_poly(
size_t i; // temporary index
ADScalar Z; // domain space AD value
ADScalar P; // range space AD value
unsigned int order = 2; // order of Taylor coefficients
int order = 2; // order of Taylor coefficients
Z.resize(order+1, false);
P.resize(order+1, false);

Expand Down

0 comments on commit 242e317

Please sign in to comment.