Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed Nov 5, 2024
1 parent 1a591a4 commit df0b307
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/anasol/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -235,4 +235,4 @@ Mads.rmdir("w01shortexpplus_restart"; path=workdir)
Mads.rmfile("w01short-rerun.mads")

Mads.createobservations!(md, collect(0:0.1:50), collect(0:0.1:50))
Mads.createobservations!(md, collect(0:0.1:50), collect(0:0.1:50); weight_type="inverse")
Mads.createobservations!(md, collect(0:0.1:50), collect(0:0.1:50); weight_type="inverse")
6 changes: 3 additions & 3 deletions examples/anasol/runtests2.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ workdir = joinpath(Mads.dir, "examples", "anasol")
md = Mads.loadmadsfile(joinpath(workdir, "w01pure.mads"))
ns = 10000
rsetdict = Mads.getparamrandom(md, ns)
rsetarray = hcat(map(i->rsetdict[i], keys(rsetdict))...)'
rsetarray = hcat(map(i -> rsetdict[i], keys(rsetdict))...)'
rsetarrayplus = [repmat([823], ns)'; repmat([1499], ns)'; repmat([3], ns)'; rsetarray; repmat([15], ns)']
Mads.vectoron()
computeconcentrations = Mads.makedoublearrayfunction(md)
Expand Down Expand Up @@ -35,5 +35,5 @@ end

rvd = Array{Float64}(undef, ns);
@time for i = 1:ns
rvd[i] = Mads.contamination(823., 1499., 3., rsetarray[:, i]..., 15., Anasol.long_fff_bbb_iir_c)
end
rvd[i] = Mads.contamination(823.0, 1499.0, 3.0, rsetarray[:, i]..., 15.0, Anasol.long_fff_bbb_iir_c)
end
4 changes: 2 additions & 2 deletions examples/anasol/runtests3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ workdir = joinpath(Mads.dir, "examples", "anasol")
md = Mads.loadmadsfile(joinpath(workdir, "w01purebig.mads"))
ns = 100
rsetdict = Mads.getparamrandom(md, ns)
rsetarray = hcat(map(i->rsetdict[i], keys(rsetdict))...)'
rsetarray = hcat(map(i -> rsetdict[i], keys(rsetdict))...)'

@info("Mads")
@time rf = Mads.forward(md, rsetarray);
Expand All @@ -21,4 +21,4 @@ for i = 1:ns
end
@time for i = 1:ns
ra[i] = madslike(rsetarray[:, i])[1]
end
end

0 comments on commit df0b307

Please sign in to comment.