Skip to content

Commit

Permalink
#2711 Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oakleybrunt committed Oct 22, 2024
1 parent 682bfff commit cacc273
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/psyclone/domain/lfric/kern_call_arg_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,13 +633,13 @@ def fs_compulsory_field(self, function_space, var_accesses=None):
# This kernel takes responsibility for iterating over cells so
# pass the whole dofmap.
sym = self.append_array_reference(map_name, [":", ":"],
ScalarType.Intrinsic.INTEGER)
ScalarType.Intrinsic.INTEGER)
self.append(sym.name, var_accesses, var_access_name=sym.name)
else:
# Pass the dofmap for the cell column
cell_name, cell_ref = self.cell_ref_name(var_accesses)
sym = self.append_array_reference(map_name, [":", cell_ref],
ScalarType.Intrinsic.INTEGER)
ScalarType.Intrinsic.INTEGER)
self.append(f"{sym.name}(:,{cell_name})",
var_accesses, var_access_name=sym.name)

Expand Down
1 change: 1 addition & 0 deletions src/psyclone/tests/domain/lfric/dofkern_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ def test_indexed_field_args(tmpdir):
# Check compilation
assert LFRicBuild(tmpdir).code_compiles(psy)


def test_redundant_comp_trans(tmpdir, monkeypatch):
'''
Check that the correct halo exchanges are added if redundant
Expand Down

0 comments on commit cacc273

Please sign in to comment.