Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 13, 2022
1 parent f202948 commit e7a1e63
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions python/taichi/lang/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
_MatrixFieldElement)
from taichi.lang.struct import StructField
from taichi.lang.util import python_scope
from taichi.types import i16, u16, i32, u32
from taichi.types import i16, i32, u16, u32
from taichi.types.compound_types import CompoundType

from taichi import lang
Expand Down Expand Up @@ -286,8 +286,7 @@ def set_relation_fixed(self, rel_type: MeshRelationType,
value.vars[0].ptr.snode())

def set_relation_dynamic(self, rel_type: MeshRelationType,
value: ScalarField,
patch_offset : ScalarField,
value: ScalarField, patch_offset: ScalarField,
offset: ScalarField):
_ti_core.set_relation_dynamic(self.mesh_ptr, rel_type,
value.vars[0].ptr.snode(),
Expand Down
4 changes: 2 additions & 2 deletions taichi/python/export_lang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1067,8 +1067,8 @@ void export_lang(py::module &m) {
m.def("set_relation_dynamic",
[](mesh::MeshPtr &mesh_ptr, mesh::MeshRelationType type, SNode *value,
SNode *patch_offset, SNode *offset) {
mesh_ptr.ptr->relations.insert(
std::pair(type, mesh::MeshLocalRelation(value, patch_offset, offset)));
mesh_ptr.ptr->relations.insert(std::pair(
type, mesh::MeshLocalRelation(value, patch_offset, offset)));
});
}

Expand Down
Loading

0 comments on commit e7a1e63

Please sign in to comment.