From 4e8a9213dd7b0f4bf4767d6e601d20cb60c972a8 Mon Sep 17 00:00:00 2001 From: Hans Pabst Date: Wed, 22 May 2024 11:07:38 +0200 Subject: [PATCH] Avoid Werror for an uninitialized variable --- src/torch_api.F | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/torch_api.F b/src/torch_api.F index ab0e36db9a..d3990e0aea 100644 --- a/src/torch_api.F +++ b/src/torch_api.F @@ -366,7 +366,7 @@ END FUNCTION torch_c_cuda_is_available res = torch_c_cuda_is_available() #else CPABORT("CP2K was compiled without Torch library.") - MARK_USED(res) + res = .FALSE. #endif END FUNCTION torch_cuda_is_available