Skip to content

Commit

Permalink
Standardize addpoint! approach
Browse files Browse the repository at this point in the history
  • Loading branch information
brenhinkeller committed Nov 13, 2024
1 parent 4ebbd1e commit 01038ce
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/inversion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@
elseif (r < p_move+p_birth) && (npoints < maxpoints)
# Birth: add a new model point
k = npointsₚ = npoints + 1
σⱼt[k] = (tinit-Tnow)/60
σⱼt[k] = (tinit-tnow)/60
σⱼT[k] = (Tinit-Tnow)/60
addpoint!(agepointsₚ, Tpointsₚ, k, σⱼt[k], σⱼT[k], boundary)

Expand Down Expand Up @@ -401,10 +401,9 @@
elseif (r < p_move+p_birth) && (npoints < maxpoints)
# Birth: add a new model point
k = npointsₚ = npoints + 1
agepointsₚ[k] = tnow + rand()*(tinit-tnow)
Tpointsₚ[k] = Tnow + rand()*(Tinit-Tnow)
σⱼt[k] = (tinit-Tnow)/60
σⱼt[k] = (tinit-tnow)/60
σⱼT[k] = (Tinit-Tnow)/60
addpoint!(agepointsₚ, Tpointsₚ, k, σⱼt[k], σⱼT[k], boundary)

elseif (r < p_move+p_birth+p_death) && (r >= p_move+p_birth) && (npoints > max(minpoints, detail.minpoints))
# Death: remove a model point
Expand Down

2 comments on commit 01038ce

@brenhinkeller
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register
Release notes:

  • Move adm and zdm rdaam/zrdaam damage models into model tuple
  • Move addpoint! to separate function

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/119302

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.10.4 -m "<description of version>" 01038cea6d45887f320dd78bec0761a8ab2caa8b
git push origin v0.10.4

Please sign in to comment.