From 56575a1e4ced351f4fe83358c9f1e2675c743c6b Mon Sep 17 00:00:00 2001 From: wengzf20 Date: Tue, 24 Feb 2026 12:13:37 +0800 Subject: [PATCH 1/2] In shouldReallocate, nEqns is nSpecie+2 --- gpu_chemistry/src/memoryResource/memoryResource.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpu_chemistry/src/memoryResource/memoryResource.H b/gpu_chemistry/src/memoryResource/memoryResource.H index 6e03e41..bfdc054 100644 --- a/gpu_chemistry/src/memoryResource/memoryResource.H +++ b/gpu_chemistry/src/memoryResource/memoryResource.H @@ -47,7 +47,7 @@ protected: if ((nCells != this->nCells()) || (nSpecie != this->nSpecie()) || - (nCells + 2 != this->nEqns())) { + (nSpecie + 2 != this->nEqns())) { return true; } return false; From ee96757b786f96466504e920399a8adb285a092a Mon Sep 17 00:00:00 2001 From: wengzf20 Date: Tue, 24 Feb 2026 12:14:15 +0800 Subject: [PATCH 2/2] typo at nvcc --- nvcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvcc b/nvcc index b76f4c9..81499f1 100644 --- a/nvcc +++ b/nvcc @@ -7,7 +7,7 @@ NVCC_FLAGS = --std=c++17 NVCC_FLAGS += --expt-extended-lambda NVCC_FLAGS += -O3 NVCC_FLAGS += --use_fast_math -NVCC_FLASG += --generate-line-info +NVCC_FLAGS += --generate-line-info NVCC_FLAGS += -lineinfo NVCC_FLAGS += --gpu-architecture=compute_86 --gpu-code=sm_86