diff --git a/mc_work/dorun.go b/mc_work/dorun.go index 1b6a384a81ae92e6b249b5b41024ac9d274c2408..cd600b62acabbf954862a3e806524bd73c492bb8 100644 --- a/mc_work/dorun.go +++ b/mc_work/dorun.go @@ -106,7 +106,8 @@ Please run the program from somewhere other than %s` return nil, fmt.Errorf(existErr, err) // The file exists.. } -// setupRun does things like get the cooling rate, seed the random numbers. +// setupRun does things like get the cooling rate, seed the random numbers, +// open files for writing output. func setupRun(mcPrm *McPrm, cprm *cprm) error { var err error cprm.rand = rand.New(rand.NewSource(int64(getSeed()))) diff --git a/ui/input_tab.go b/ui/input_tab.go index 64b074a9af302ac24a92cd1412067ae0f71261a3..8f0a3255b7603c1919583856b94c5c8bed0a334e 100644 --- a/ui/input_tab.go +++ b/ui/input_tab.go @@ -21,7 +21,7 @@ import ( "example.com/ackley_mc/mc_work" ) -// startrun is what happens when you click on the form's button to start +// startrun is called when you click on the form's button to start // a calculation. func startrun(genParams genParams, form *widget.Form, mcPrm *mcwork.McPrm) { form.Disable() @@ -164,7 +164,6 @@ func getmcprm(rd fyne.URIReadCloser, err error, genParams genParams, reload func } // rdwork is called after the file open dialog gets "OK" -//func rdwork(mcPrm *mcwork.McPrm, parent fyne.Window, reload func()) { func rdwork(genParams genParams, reload func()) { getter := func(rd fyne.URIReadCloser, err error) { getmcprm(rd, err, genParams, reload) @@ -176,7 +175,7 @@ func rdwork(genParams genParams, reload func()) { t.SetLocation(y) // If there was an error, we just use default location } } - t.Show() // set an error and see if anybody notices + t.Show() } // mcWrap is run in the background so the interface does not block.