|  | @@ -12,7 +12,7 @@ export interface layer {
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  export interface simulationSetup {
 |  |  export interface simulationSetup {
 | 
											
												
													
														|  |    hostIndex: number
 |  |    hostIndex: number
 | 
											
												
													
														|  | -  fromWL: number; toWL:number; pointsWL:number
 |  | 
 | 
											
												
													
														|  | 
 |  | +  fromWL: number; toWL:number; pointsWL:number; currentWL:number
 | 
											
												
													
														|  |    layers: layer[]
 |  |    layers: layer[]
 | 
											
												
													
														|  |    numberOfModesToPlot: number
 |  |    numberOfModesToPlot: number
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
										
											
												
													
														|  | @@ -24,10 +24,12 @@ export interface simulationSetupStateInterface {
 | 
											
												
													
														|  |    nmie: import('src/nmiejs').nmie_class|undefined
 |  |    nmie: import('src/nmiejs').nmie_class|undefined
 | 
											
												
													
														|  |    isNmieLoaded: boolean
 |  |    isNmieLoaded: boolean
 | 
											
												
													
														|  |    isNmieRunning: boolean
 |  |    isNmieRunning: boolean
 | 
											
												
													
														|  | 
 |  | +  nmieStartedTime: number
 | 
											
												
													
														|  | 
 |  | +  nmieTotalRunTime: number
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  function setupFactory(hostIndex = 1,
 |  |  function setupFactory(hostIndex = 1,
 | 
											
												
													
														|  | -                      fromWL = 300, toWL=1000, pointsWL=101,
 |  | 
 | 
											
												
													
														|  | 
 |  | +                      fromWL = 300, toWL=1000, pointsWL=101, currentWL = 300,
 | 
											
												
													
														|  |                        layers = [
 |  |                        layers = [
 | 
											
												
													
														|  |                          {layerWidth:100, n:4, k:0.01,
 |  |                          {layerWidth:100, n:4, k:0.01,
 | 
											
												
													
														|  |                            materialName:'nk-constant',
 |  |                            materialName:'nk-constant',
 | 
											
										
											
												
													
														|  | @@ -38,6 +40,7 @@ function setupFactory(hostIndex = 1,
 | 
											
												
													
														|  |                       ):simulationSetup {
 |  |                       ):simulationSetup {
 | 
											
												
													
														|  |    return {hostIndex:hostIndex,
 |  |    return {hostIndex:hostIndex,
 | 
											
												
													
														|  |      fromWL:fromWL, toWL:toWL, pointsWL:pointsWL,
 |  |      fromWL:fromWL, toWL:toWL, pointsWL:pointsWL,
 | 
											
												
													
														|  | 
 |  | +    currentWL:currentWL,
 | 
											
												
													
														|  |      layers: cloneDeep(layers),
 |  |      layers: cloneDeep(layers),
 | 
											
												
													
														|  |      numberOfModesToPlot: numberOfModesToPlot,
 |  |      numberOfModesToPlot: numberOfModesToPlot,
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
										
											
												
													
														|  | @@ -52,12 +55,15 @@ function state(): simulationSetupStateInterface {
 | 
											
												
													
														|  |    const nmie = undefined
 |  |    const nmie = undefined
 | 
											
												
													
														|  |    const isNmieLoaded = false
 |  |    const isNmieLoaded = false
 | 
											
												
													
														|  |    const isNmieRunning = false
 |  |    const isNmieRunning = false
 | 
											
												
													
														|  | 
 |  | +  const nmieStartedTime = 0
 | 
											
												
													
														|  | 
 |  | +  const nmieTotalRunTime = 0
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |    return {
 |  |    return {
 | 
											
												
													
														|  |      library,
 |  |      library,
 | 
											
												
													
														|  |      gui, // simulation setup config as shown in GUI
 |  |      gui, // simulation setup config as shown in GUI
 | 
											
												
													
														|  |      current, // simulation setup used for the latest simulation
 |  |      current, // simulation setup used for the latest simulation
 | 
											
												
													
														|  |      nmie,
 |  |      nmie,
 | 
											
												
													
														|  | -    isNmieLoaded, isNmieRunning
 |  | 
 | 
											
												
													
														|  | 
 |  | +    isNmieLoaded, isNmieRunning, nmieStartedTime, nmieTotalRunTime
 | 
											
												
													
														|  |    }
 |  |    }
 | 
											
												
													
														|  |  };
 |  |  };
 | 
											
												
													
														|  |  
 |  |  
 |