Skip to content

Commit

Permalink
Merge pull request sandialabs#80 from btalamini/fix_jax_removed_row_s…
Browse files Browse the repository at this point in the history
…tack

Replace function removed from jax api with equivalent
  • Loading branch information
btalamini authored Feb 27, 2024
2 parents a2f8efe + db2705e commit c1450ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimism/phasefield/PhaseField.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def plane_strain_gradient(gradU):
dispGrad2D, phaseGrad2D = unpack_gradients_2D(gradU)
dispGrad = tensor_2D_to_3D(dispGrad2D)
phaseGrad = np.hstack((phaseGrad2D,0.0))
return np.row_stack((dispGrad,phaseGrad))
return np.vstack((dispGrad,phaseGrad))


def plane_strain_element_gradient_transformation(elemGrads, elemShapes, elemVols, elemNodalDofs, elemNodalCoords):
Expand All @@ -119,7 +119,7 @@ def axisymmetric_gradient(gradU, U, coord):
dispGrad = tensor_2D_to_3D(dispGrad2D)
dispGrad = dispGrad.at[2,2].set(disp[0]/coord[0])
phaseGrad = np.hstack((phaseGrad2D,0.0))
return np.row_stack((dispGrad, phaseGrad))
return np.vstack((dispGrad, phaseGrad))


def axisymmetric_element_gradient_transformation(elemGrads, elemShapes, elemVols, elemNodalDofs, elemNodalCoords):
Expand Down

0 comments on commit c1450ca

Please sign in to comment.