Changeset 9cdf1dc3 in OpenModelica


Ignore:
Timestamp:
2022-06-30T21:00:27+02:00 (21 months ago)
Author:
bernhardbachmann <bernhard.bachmann@…>
Children:
118a84b
Parents:
df70d96
Message:

Change the availability to true (for Francesco), added better error reporting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMCompiler/SimulationRuntime/c/simulation/solver/gbode_main.c

    rdf70d96 r9cdf1dc3  
    242242    {
    243243      // ToDo: If Jacobian available set this to TRUE
    244       gbfData->symJacAvailable = FALSE;
     244      gbfData->symJacAvailable = TRUE;
    245245      infoStreamPrint(LOG_SOLVER, 1, "Initialized colored Jacobian:");
    246246      infoStreamPrint(LOG_SOLVER, 0, "columns: %d rows: %d", jacobian->sizeCols, jacobian->sizeRows);
     
    416416    } else {
    417417      // ToDo: If Jacobian available set this to TRUE
    418       gbData->symJacAvailable = FALSE;
     418      gbData->symJacAvailable = TRUE;
    419419      //gbData->jacobian = jacobian;  Add this?
    420420      infoStreamPrint(LOG_SOLVER, 1, "Initialized colored Jacobian:");
     
    16861686        infoStreamPrint(LOG_SOLVER, 0, "gbode_main: Failed to calculate step at time = %5g.", gbData->time + gbData->stepSize);
    16871687        if (gbData->ctrl_method == GB_CTRL_CNST) {
    1688           errorStreamPrint(LOG_STDOUT, 0, "Simulation abborted!");
     1688          errorStreamPrint(LOG_STDOUT, 0, "Simulation abborted since gbode is running with fixed step size!");
    16891689          messageClose(LOG_SOLVER);
    16901690          return -1;
     
    16971697            continue;
    16981698          } else {
    1699             errorStreamPrint(LOG_STDOUT, 0, "Simulation abborted!");
     1699            errorStreamPrint(LOG_STDOUT, 0, "Simulation abborted because the step size is less then %g!", MINIMAL_STEP_SIZE);
    17001700            messageClose(LOG_SOLVER);
    17011701            return -1;
Note: See TracChangeset for help on using the changeset viewer.