Commit 2bc5b080 authored by Philipp Fensch's avatar Philipp Fensch
Browse files

Removed nullptr-check, reverted erroneous change in FindCIMpp.cmake

parent 730e4f95
set(CIMPP_DIR Dependencies/libcimpp)
option(WITH_CIM_SUBMODULE "Build with CIMpp as submodule" ON)
option(WITH_CIM_SUBMODULE "Build with CIMpp as submodule" OFF)
set(CIM_VERSION "16v29a")
set(USE_CIM_VERSION "IEC61970_16v29a")
......
......@@ -33,16 +33,11 @@ MnaSolverGpu<VarType>::~MnaSolverGpu() {
cudaStreamDestroy(mStream);
//Memory allocated on device
if(mDeviceCopy.matrix)
cudaFree(mDeviceCopy.matrix);
if(mDeviceCopy.vector)
cudaFree(mDeviceCopy.vector);
if(mDeviceCopy.workSpace)
cudaFree(mDeviceCopy.workSpace);
if(mDeviceCopy.pivSeq)
cudaFree(mDeviceCopy.pivSeq);
if(mDeviceCopy.errInfo)
cudaFree(mDeviceCopy.errInfo);
cudaFree(mDeviceCopy.matrix);
cudaFree(mDeviceCopy.vector);
cudaFree(mDeviceCopy.workSpace);
cudaFree(mDeviceCopy.pivSeq);
cudaFree(mDeviceCopy.errInfo);
cudaDeviceReset();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment