Skip to content

Commit

Permalink
Merge branch 'main' into fix_solve_nonhydro_divdamp_fac_o2
Browse files Browse the repository at this point in the history
  • Loading branch information
halungge committed Nov 17, 2023
2 parents 7ce558e + 9d0614b commit 3df90b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/cscs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ variables:
DOCKERFILE: ci/docker/Dockerfile.build

.test_template:
extends: .container-runner-hohgant-a100
extends: .container-runner-clariden-a100
timeout: 2h
image: $PERSIST_IMAGE_NAME
before_script:
Expand Down
2 changes: 1 addition & 1 deletion model/common/src/icon4py/model/common/grid/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ClassLevelCache:
@staticmethod
def cache_method(method):
def wrapper(self, *args, **kwargs):
key = f"{method.__name__}_{args}_{kwargs}"
key = f"{self.__class__.__name__}_{method.__name__}_{args}_{kwargs}"
if key not in ClassLevelCache._cache:
ClassLevelCache._cache[key] = method(self, *args, **kwargs)
return ClassLevelCache._cache[key]
Expand Down
2 changes: 1 addition & 1 deletion tools/tests/icon4pygen/test_codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def check_header_codegen(fname: str) -> None:

def check_gridtools_codegen(fname: str) -> None:
stencil_name = fname.replace(".hpp", "")
patterns = ["#include <.*>", "using .*;", f"inline auto {stencil_name}"]
patterns = ["#include <.*>", "using .*;", f"inline\\s+auto\\s+{stencil_name}"]
check_for_matches(fname, patterns)


Expand Down

0 comments on commit 3df90b0

Please sign in to comment.