Changeset edf295d5 in OpenModelica


Ignore:
Timestamp:
2023-03-28T12:00:17+02:00 (13 months ago)
Author:
phannebohm <phannebohm@…>
Parents:
77d23066
Message:

Only move file if it was created

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMCompiler/Compiler/SimCode/SimCodeMain.mo

    r77d23066 redf295d5  
    807807        SerializeSparsityPattern.serialize(simCode);
    808808        for jac in simCode.jacobianMatrices loop
    809           if 0 <> System.systemCall("mv '" + simCode.fileNamePrefix + "_Jac" + jac.matrixName + ".bin" + "' '" + resourcesDir + "'") then
    810             Error.addInternalError("Failed to move " + simCode.fileNamePrefix + "_Jac" + jac.matrixName + ".bin file", sourceInfo());
     809          if not listEmpty(jac.sparsity) then
     810            if 0 <> System.systemCall("mv '" + simCode.fileNamePrefix + "_Jac" + jac.matrixName + ".bin" + "' '" + resourcesDir + "'") then
     811              Error.addInternalError("Failed to move " + simCode.fileNamePrefix + "_Jac" + jac.matrixName + ".bin file", sourceInfo());
     812            end if;
    811813          end if;
    812814        end for;
Note: See TracChangeset for help on using the changeset viewer.