@@ -643,6 +643,7 @@ func executeCommand(cmd []string, sim *Simulation, status *structs.SimulationSta
643
643
var message = "No feedback implemented for this command"
644
644
switch cmd [0 ] {
645
645
case "load" :
646
+ status .Loading = true
646
647
var configDir string
647
648
success , message , configDir = initializeSimulation (sim , cmd [1 ], cmd [2 ])
648
649
if success {
@@ -653,6 +654,7 @@ func executeCommand(cmd []string, sim *Simulation, status *structs.SimulationSta
653
654
scenarios := findScenarios (status )
654
655
shorty .Scenarios = & scenarios
655
656
}
657
+ status .Loading = false
656
658
case "teardown" :
657
659
status .Loaded = false
658
660
status .Status = "stopped"
@@ -806,6 +808,7 @@ func GetSignalValue(module string, cardinality string, signal string) int {
806
808
807
809
func GenerateJsonResponse (status * structs.SimulationStatus , sim * Simulation , feedback structs.CommandFeedback , shorty structs.ShortLivedData ) structs.JsonResponse {
808
810
var response = structs.JsonResponse {
811
+ Loading : status .Loading ,
809
812
Loaded : status .Loaded ,
810
813
Status : status .Status ,
811
814
}
@@ -854,7 +857,7 @@ func StateUpdateLoop(state chan structs.JsonResponse, simulationStatus *structs.
854
857
func addFmu (execution * C.cse_execution , fmuPath string ) (* C.cse_slave , error ) {
855
858
baseName := filepath .Base (fmuPath )
856
859
instanceName := strings .TrimSuffix (baseName , filepath .Ext (baseName ))
857
- fmt .Printf ("Creating instance %s from %s" , instanceName , fmuPath )
860
+ fmt .Printf ("Creating instance %s from %s\n " , instanceName , fmuPath )
858
861
localSlave := createLocalSlave (fmuPath , instanceName )
859
862
if localSlave == nil {
860
863
printLastError ()
0 commit comments