Skip to content

Commit

Permalink
#1010 Fix flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sergisiso committed Jan 29, 2025
1 parent cdb2399 commit 0614d93
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/psyclone/dynamo0p3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,7 @@ def initialise(self, cursor: int) -> int:
lhs=Reference(symbol),
rhs=StructureReference.create(
self.symtab.lookup(arg.proxy_name),
["local_stencil"]),
["local_stencil"]),
is_pointer=True),
cursor)
cursor += 1
Expand Down Expand Up @@ -3406,7 +3406,8 @@ def _compute_basis_fns(self, cursor):
args = [Reference(self.symtab.lookup(basis_type)),
basis_fn["arg"].generate_accessor(basis_fn["fspace"]),
Reference(self.symtab.lookup(first_dim)),
Reference(self.symtab.lookup(basis_fn["fspace"].ndf_name)),
Reference(self.symtab.lookup(
basis_fn["fspace"].ndf_name)),
Reference(self.symtab.lookup(op_name))]

# insert the basis array call
Expand Down
10 changes: 5 additions & 5 deletions src/psyclone/tests/domain/lfric/lfric_dofmaps_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_lfricdofmap_stubdecln_err():
dofmaps.stub_declarations()
assert ("Invalid direction ('not-a-direction') found for CMA operator "
"when collecting column-banded dofmaps" in str(err.value))

# Test invalid direction kernel
kernel_direction = psy.invokes.invoke_list[0].schedule.kernels()[1]
# Need and nlayers symbols because it is looked-up by the LFRicDofmaps
Expand Down Expand Up @@ -194,8 +194,8 @@ def test_stub_decl_dofmaps():
'''

stub_text = generate(os.path.join(BASE_PATH,
"columnwise_op_asm_kernel_mod.F90"),
api=TEST_API)
"columnwise_op_asm_kernel_mod.F90"),
api=TEST_API)

assert "integer(kind=i_def), intent(in) :: cma_op_2_ncol" in stub_text
assert "integer(kind=i_def), intent(in) :: cma_op_2_nrow" in stub_text
Expand All @@ -208,8 +208,8 @@ def test_lfricdofmaps_stub_gen():
'''
stub_text = generate(os.path.join(BASE_PATH,
"columnwise_op_app_kernel_mod.F90"),
api=TEST_API)
"columnwise_op_app_kernel_mod.F90"),
api=TEST_API)

expected = (
" subroutine columnwise_op_app_kernel_code(cell, ncell_2d, "
Expand Down

0 comments on commit 0614d93

Please sign in to comment.