Skip to content
Snippets Groups Projects
Commit dc11a66f authored by Andrew E. Torda's avatar Andrew E. Torda
Browse files

Docs and comments only.

parent 20301ee5
No related branches found
No related tags found
No related merge requests found
File moved
File added
...@@ -199,7 +199,7 @@ func saveStep(cprm *cprm, n int, tmprtr float64, x []float32, fTrial float64) { ...@@ -199,7 +199,7 @@ func saveStep(cprm *cprm, n int, tmprtr float64, x []float32, fTrial float64) {
// doRun does a Monte Carlo run. // doRun does a Monte Carlo run.
// We only need single precision for most things, except for function // We only need single precision for most things, except for function
// values, but the interface to the plot and interface packages mostly // values, but the interface to the plot and interface packages mostly
// want double precision, so we have a lot of float64 that shoudl be // want double precision, so we have a lot of float64 that should be
// float32. // float32.
func singleRun(mcPrm *McPrm) (MCresult, error) { func singleRun(mcPrm *McPrm) (MCresult, error) {
var cprm cprm var cprm cprm
......
...@@ -3,6 +3,10 @@ ...@@ -3,6 +3,10 @@
// We have magic keywords like ini_temp. // We have magic keywords like ini_temp.
// These are stored in a map along with string values. These are then converted // These are stored in a map along with string values. These are then converted
// to floats or ints and put into a structure or variable. // to floats or ints and put into a structure or variable.
// This is a superset of the requirements in the Uebung. We
// - hop over blank lines
// - ignore case
// - allow comments - anything after a hash (#)
package mcwork package mcwork
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment