NCAR / micm

A model-independent chemistry module for atmosphere models
https://ncar.github.io/micm/
Apache License 2.0
6 stars 4 forks source link

Explicitly call the base class function when the input argument is not a CUDA Matrix #482

Closed sjsprecious closed 3 months ago

sjsprecious commented 3 months ago

While working on the PR #464 , @mattldawson found out that sometimes the CUDA class failed to call the function from the base class when the input argument is not a CUDA matrix.

The solution is to explicitly call the function from the base class when the input argument is not a CUDA matrix. This has been done in the CudaLuDecompusition and CudaLinearSolver class. Should be done in the CudaProcessSet and CudaRosenbrock class as well for consistency.