Skip to content

Commit

Permalink
Replace function removed from jax api with equivalent
Browse files Browse the repository at this point in the history
  • Loading branch information
btalamini committed Feb 27, 2024
1 parent a2f8efe commit db2705e
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 db2705e

Please sign in to comment.