Skip to content

Commit 3441ae2

Browse files
committed
clone row_vector_cell
1 parent d8f67ff commit 3441ae2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch_sim/optimizers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,7 @@ def fire_init(
936936
cell_masses=cell_masses,
937937
# Optimization attributes
938938
reference_cell=state.cell.clone(),
939+
row_vector_cell=state.row_vector_cell.clone(),
939940
cell_factor=cell_factor,
940941
pressure=pressure,
941942
dt=dt_start,
@@ -1020,7 +1021,6 @@ class FrechetCellFIREState(SimState, DeformGradMixin):
10201021
stress: torch.Tensor
10211022

10221023
# Optimization-specific attributes
1023-
reference_cell: torch.Tensor
10241024
cell_factor: torch.Tensor
10251025
pressure: torch.Tensor
10261026
hydrostatic_strain: bool

0 commit comments

Comments
 (0)