You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 18, 2019. It is now read-only.
Debug.traceln("Skip symbolic jacobian for non-linear system "+ name +"\n");
2399
-
end if;
2400
-
out :=false;
2401
-
else
2402
-
out :=true;
2403
-
end if;
2404
-
else
2396
+
ifnot (b1 and b2) then
2397
+
ifFlags.isSet(Flags.FAILTRACE) then
2398
+
Debug.traceln("Skip symbolic jacobian for non-linear system "+ name +"\n");
2399
+
end if;
2400
+
out :=false;
2401
+
else
2402
+
out :=true;
2403
+
end if;
2404
+
else
2405
2405
out :=false;
2406
2406
end try;
2407
2407
else
@@ -2424,39 +2424,39 @@ protected
2424
2424
BackendDAE.Variables diffVars, oVars, resVars;
2425
2425
BackendDAE.EquationArray resEqns, oEqns;
2426
2426
algorithm
2427
-
try
2428
-
// check non-linear flag
2429
-
ifnot isLinear andnotFlags.isSet(Flags.NLS_ANALYTIC_JACOBIAN) then
2430
-
onlySparsePattern :=true;
2431
-
end if;
2432
-
// generate jacobian name
2433
-
if isLinear then
2434
-
prename :="LS";
2435
-
else
2436
-
prename :="NLS";
2437
-
end if;
2438
-
name := prename +"Jac"+ intString(System.tmpTickIndex(Global.backendDAE_jacobianSeq));
2439
-
2440
-
ifdebug then
2441
-
print("*** "+ prename +"-JAC *** start creating Jacobian for a torn system "+ name +" of size "+ intString(listLength(inTearingSet.tearingvars)) +" time: "+ realString(clock()) +"\n");
print("*** "+ prename +"-JAC *** prepared all data for differentiation at time: "+ realString(clock()) +"\n");
2448
-
end if;
2427
+
try
2428
+
// check non-linear flag
2429
+
ifnot isLinear andnotFlags.isSet(Flags.NLS_ANALYTIC_JACOBIAN) then
2430
+
onlySparsePattern :=true;
2431
+
end if;
2432
+
// generate jacobian name
2433
+
if isLinear then
2434
+
prename :="LS";
2435
+
else
2436
+
prename :="NLS";
2437
+
end if;
2438
+
name := prename +"Jac"+ intString(System.tmpTickIndex(Global.backendDAE_jacobianSeq));
2439
+
2440
+
ifdebug then
2441
+
print("*** "+ prename +"-JAC *** start creating Jacobian for a torn system "+ name +" of size "+ intString(listLength(inTearingSet.tearingvars)) +" time: "+ realString(clock()) +"\n");
// FIXME add support for outers that don't have "inner outer" or "inner" at closest instance level (requires to introduce a fresh intermediate variable)
0 commit comments