更新 ruoyi-ngtools/src/main/java/com/ruoyi/ngCalTools/controller/GasController.java
修改类初始化
This commit is contained in:
parent
17c74ab82b
commit
f0bf48da8c
@ -48,7 +48,7 @@ return tempPar;
|
||||
}
|
||||
public double SOS(GasProps gasProps) {
|
||||
// check if library is ready; initialize if necessary
|
||||
if (null == (detailService=new DetailService()) || null == (thermService=new ThermService())) {
|
||||
if (null == (detailService=) || null == (thermService)) {
|
||||
NG_Cal_UnInit();
|
||||
NG_Cal_Init();
|
||||
}
|
||||
@ -81,7 +81,7 @@ return tempPar;
|
||||
int i;
|
||||
|
||||
//check objects for readiness; try to initialize if not
|
||||
if (null == (detailService=new DetailService()) || null == (thermService=new ThermService()))
|
||||
if (null == (detailService=) || null == (thermService))
|
||||
{
|
||||
NG_Cal_UnInit();
|
||||
|
||||
@ -146,7 +146,7 @@ return tempPar;
|
||||
}
|
||||
public double Zcal(GasProps gasProps, double dPlenumVelocity)
|
||||
{
|
||||
if (null == (detailService=new DetailService()) || null == (thermService=new ThermService()))
|
||||
if (null == (detailService) || null == (thermService))
|
||||
{
|
||||
NG_Cal_UnInit();
|
||||
if (GasConstants.NG_Cal_INITIALIZED != NG_Cal_Init())
|
||||
|
Loading…
Reference in New Issue
Block a user