Skip to content

Commit 77bdc90

Browse files
committed
rm clone of row_vector_cell
1 parent 6f7439b commit 77bdc90

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

torch_sim/optimizers.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,6 @@ def gd_init(
385385
cell=state.cell,
386386
pbc=state.pbc,
387387
reference_cell=state.cell.clone(),
388-
row_vector_cell=state.row_vector_cell.clone(),
389388
cell_factor=cell_factor,
390389
hydrostatic_strain=hydrostatic_strain,
391390
constant_volume=constant_volume,
@@ -937,7 +936,6 @@ def fire_init(
937936
cell_masses=cell_masses,
938937
# Optimization attributes
939938
reference_cell=state.cell.clone(),
940-
row_vector_cell=state.row_vector_cell.clone(),
941939
cell_factor=cell_factor,
942940
pressure=pressure,
943941
dt=dt_start,
@@ -1244,7 +1242,6 @@ def fire_init(
12441242
cell_masses=cell_masses,
12451243
# Optimization attributes
12461244
reference_cell=state.cell.clone(),
1247-
row_vector_cell=state.row_vector_cell.clone(),
12481245
cell_factor=cell_factor,
12491246
pressure=pressure,
12501247
dt=dt_start,

torch_sim/state.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,8 @@ class DeformGradMixin:
498498
"""Mixin for states that support deformation gradients."""
499499

500500
reference_cell: torch.Tensor
501-
row_vector_cell: torch.Tensor
502501

503-
_system_attributes: ClassVar[set[str]] = {"reference_cell", "row_vector_cell"}
502+
_system_attributes: ClassVar[set[str]] = {"reference_cell"}
504503

505504
@property
506505
def reference_row_vector_cell(self) -> torch.Tensor:

0 commit comments

Comments
 (0)