Skip to content

Commit

Permalink
Fix call to UniversalKriging constructor
Browse files Browse the repository at this point in the history
Former-commit-id: 9d04890
  • Loading branch information
juliohm committed Jan 22, 2019
1 parent aee45be commit e36c0fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/solvers/kriging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function preprocess(problem::EstimationProblem, solver::Kriging)
if varparams.drifts nothing
estimator = ExternalDriftKriging(varparams.variogram, varparams.drifts)
elseif varparams.degree nothing
estimator = UniversalKriging(varparams.variogram, varparams.degree)
estimator = UniversalKriging(varparams.variogram, varparams.degree, ndims(pdomain))
elseif varparams.mean nothing
estimator = SimpleKriging(varparams.variogram, varparams.mean)
else
Expand Down
2 changes: 1 addition & 1 deletion src/solvers/sgsim.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function preprocess(problem::SimulationProblem, solver::SeqGaussSim)
if varparams.drifts nothing
estimator = ExternalDriftKriging(varparams.variogram, varparams.drifts)
elseif varparams.degree nothing
estimator = UniversalKriging(varparams.variogram, varparams.degree)
estimator = UniversalKriging(varparams.variogram, varparams.degree, ndims(pdomain))
elseif varparams.mean nothing
estimator = SimpleKriging(varparams.variogram, varparams.mean)
else
Expand Down

0 comments on commit e36c0fe

Please sign in to comment.