diff --git a/mc_work/dorun.go b/mc_work/dorun.go index c61d01c56f9dfd96b143efd1be12601d2762a558..4b9cfd5ea4a73180503af7a8d241a88786e479dd 100644 --- a/mc_work/dorun.go +++ b/mc_work/dorun.go @@ -197,7 +197,6 @@ func nRunAdj(mcPrm *mcPrm, nstep uint32, runAcc float64, xDlta float32) float32 } return xDlta } -func breaker(...interface{}) {} // doRun does a Monte Carlo run. Although single precision is fine for the // coordinates and function, we use double precision for the temperature. @@ -213,7 +212,7 @@ func doRun(mcPrm *mcPrm) error { defer cprm.fOut.Flush() } - if c, ok := cprm.fplotWrt.(io.Closer); ok == true { // will also have to do for X values + if c, ok := cprm.fplotWrt.(io.Closer); ok { // will also have to do for X values defer c.Close() } @@ -271,7 +270,7 @@ func doRun(mcPrm *mcPrm) error { return err } - if bBuf, ok := cprm.fplotWrt.(withBytes); ok == true { + if bBuf, ok := cprm.fplotWrt.(withBytes); ok { fmt.Println("bBuf for plotting is this big", len(bBuf.Bytes())) } if err := plotxWrt(&cprm, mcPrm.xPltName, len(mcPrm.xIni)); err != nil {