Skip to content

Commit

Permalink
Sync with PALEOboxes 0.16 changes, upversion to 0.2 (#4)
Browse files Browse the repository at this point in the history
All module __init__() functions to call PB.add_reaction_factory() removed
  • Loading branch information
sjdaines authored Apr 26, 2022
1 parent fce2ce3 commit 776f477
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 103 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PALEOcopse"
uuid = "4a6ed817-0e58-48c6-8452-9e9afc8cb508"
authors = ["sd336 "]
version = "0.1.0"
version = "0.2.0"

[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Expand All @@ -19,7 +19,7 @@ Documenter = "0.27"
Infiltrator = "1.0"
Interpolations = "0.13"
MAT = "0.10"
PALEOboxes = "0.15"
PALEOboxes = "0.16"
PALEOmodel = "0.14"
Plots = "1.0"
Roots = "1.0, 2.0"
Expand Down
6 changes: 0 additions & 6 deletions src/COPSE/CIsotopes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,4 @@ function do_CIsotopes(
return nothing
end

# Install create_reactionXXX factories when module imported
function __init__()
PB.add_reaction_factory(ReactionCIsotopes)
return nothing
end

end
7 changes: 0 additions & 7 deletions src/COPSE/MapAtmOceanReservoirs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,4 @@ function do_AtmOcean_A_isotope(

end

"Install create_reactionXXX factories when module imported"
function __init__()
PB.add_reaction_factory(ReactionAtmOcean_O)
PB.add_reaction_factory(ReactionAtmOcean_A)
return nothing
end

end
8 changes: 0 additions & 8 deletions src/COPSE/ModelBergman2004.jl
Original file line number Diff line number Diff line change
Expand Up @@ -502,14 +502,6 @@ function do_updatestate(m::PB.ReactionMethod, (S, D), cellrange::PB.AbstractCell
end




"Install create_reactionXXX factories when module imported"
function __init__()
PB.add_reaction_factory(ReactionModelBergman2004)
return nothing
end

"""
copse_landbiota_bergman2004(pars, S, D, TEMP)
Expand Down
12 changes: 0 additions & 12 deletions src/Forcings/COPSEForcings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -302,16 +302,4 @@ function do_force_spreadsheet(m::PB.ReactionMethod, (var_tforce, var_FORCE), cel
end



"Install create_reactionXXX factories when module imported"
function __init__()
PB.add_reaction_factory(ReactionForce_CK_Solar)
PB.add_reaction_factory(ReactionForce_UDWEbergman2004)
PB.add_reaction_factory(ReactionForce_Bbergman2004)
PB.add_reaction_factory(ReactionForce_CPlandrelbergman2004)
PB.add_reaction_factory(ReactionForce_spreadsheet)
return nothing
end


end # module
7 changes: 0 additions & 7 deletions src/Forcings/LipForcing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,5 @@ function do_force_LIPs(m::PB.ReactionMethod, (vars, ), cellrange::PB.AbstractCel
end


"Install create_reactionXXX factories when module imported"
function __init__()
PB.add_reaction_factory(ReactionForce_LIPs)

return nothing
end


end # module
10 changes: 0 additions & 10 deletions src/biogeochem/Strontium.jl
Original file line number Diff line number Diff line change
Expand Up @@ -427,14 +427,4 @@ function set_Sr_fluxes_steady_state!(
end


"Install create_reactionXXX factories when module imported"
function __init__()
PB.add_reaction_factory(ReactionSrMantleCrust)
PB.add_reaction_factory(ReactionSrSed)
PB.add_reaction_factory(ReactionSrLand)
PB.add_reaction_factory(ReactionSrOceanfloor)

return nothing
end

end
8 changes: 0 additions & 8 deletions src/global/Temperature.jl
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,4 @@ function do_GlobalTemperatureBerner(m::PB.ReactionMethod, (vars, ), cellrange::P
return nothing
end


"Install create_reactionXXX factories when module imported"
function __init__()
PB.add_reaction_factory(ReactionGlobalTemperatureCK1992)
PB.add_reaction_factory(ReactionGlobalTemperatureBerner)
return nothing
end

end # module
7 changes: 0 additions & 7 deletions src/landsurface/LandArea.jl
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,4 @@ function do_land_area(m::PB.ReactionMethod, (vars, ), cellrange::PB.AbstractCell
return nothing
end

"Install create_reactionXXX factories when module imported"
function __init__()
PB.add_reaction_factory(ReactionLandArea)

return nothing
end

end
8 changes: 0 additions & 8 deletions src/landsurface/LandBergman2004.jl
Original file line number Diff line number Diff line change
Expand Up @@ -319,14 +319,6 @@ end





"Install create_reactionXXX factories when module imported"
function __init__()
PB.add_reaction_factory(ReactionLandBergman2004)
return nothing
end

function copse_landbiota_bergman2004(pars, D)
"""COPSE_LANDBIOTA COPSE OCT dynamic land vegetation model
"""
Expand Down
8 changes: 0 additions & 8 deletions src/landsurface/LandCOPSEReloaded.jl
Original file line number Diff line number Diff line change
Expand Up @@ -877,14 +877,6 @@ function set_steady_state(
end
end

"Install create_reactionXXX factories when module imported"
function __init__()
PB.add_reaction_factory(ReactionLandBiota)
PB.add_reaction_factory(ReactionLandWeatheringRates)
PB.add_reaction_factory(ReactionLandWeatheringFluxes)
return nothing
end



end # module
8 changes: 0 additions & 8 deletions src/ocean/OceanCOPSE.jl
Original file line number Diff line number Diff line change
Expand Up @@ -367,14 +367,6 @@ function do_react(m::PB.ReactionMethod, (fluxOceanBurial, S, D), cellrange::PB.
return nothing
end


"Install create_reactionXXX factories when module imported"
function __init__()
PB.add_reaction_factory(ReactionOceanCOPSE)
return nothing
end


function copse_marinebiota(pars, tmodel, S, D )
"""COPSE_MARINEBIOTA COPSE marine ecosystem model
"""
Expand Down
6 changes: 0 additions & 6 deletions src/oceanfloor/Weathering.jl
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,5 @@ function set_distributionfromdepths(
return nothing
end

"Install create_reactionXXX factories when module imported"
function __init__()

PB.add_reaction_factory(ReactionSeafloorWeathering)
return nothing
end

end # module
6 changes: 0 additions & 6 deletions src/sedcrust/SedCrustCOPSE.jl
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,4 @@ function do_sed_crust_COPSE(
end


"Install create_reactionXXX factories when module imported"
function __init__()
PB.add_reaction_factory(ReactionSedCrustCOPSE)
return nothing
end

end # module

2 comments on commit 776f477

@sjdaines
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()

@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/59191

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.2.0 -m "<description of version>" 776f477252c026d91f86ce6e561ab8015abe48cc
git push origin v0.2.0

Please sign in to comment.