Skip to content

Commit

Permalink
Merge pull request #42 from ProjectTorreyPines/database_runs
Browse files Browse the repository at this point in the history
manual PR forgot for AD_TAUENN tranport_model
  • Loading branch information
orso82 authored Mar 10, 2022
2 parents 1df8714 + 714abd4 commit 718d8a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
authors = ["Orso Meneghini <[email protected]>"]
name = "FUSE"
uuid = "e64856f0-3bb8-4376-b4b7-c03396503992"
authors = ["Orso Meneghini <[email protected]>"]
version = "0.1.0"

[deps]
AD_EPEDNN = "e64856f0-3bb8-4376-b4b7-c03396503991"
AD_GS = "9d9223b5-c5da-4bf4-abee-2a8bb6775a49"
AD_TAUENN = "4f5ffc88-c87f-11eb-142e-4d2ba0394a67"
AD_TGLFNN = "558c7b13-fd9f-4806-b461-592296cfa9d0"
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Contour = "d38c429a-6771-53c6-b99e-75d170b6e991"
CoordinateConventions = "7204ce3a-f536-43d2-be4a-fbed74e90d86"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
EFIT = "cda752c5-6b03-55a3-9e33-132a441b0c17"
Equilibrium = "187daef3-cca3-527a-8725-7379bc760182"
Expand All @@ -35,3 +37,4 @@ Revise = "295af30f-e4ad-537b-8983-00126c2a3abe"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

4 changes: 2 additions & 2 deletions src/actors/transport_actor.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ mutable struct TaueNNactor <: AbstractActor
outputs::AD_TAUENN.TauennOutputs
end

function TaueNNactor(dd::IMAS.dd; rho_fluxmatch = 0.6, eped_factor = 1.0, T_shaping = 1.8, temp_pedestal_ratio = 1.0, error = 1E-2, use_tglfnn = true, kw...)
function TaueNNactor(dd::IMAS.dd; rho_fluxmatch = 0.6, eped_factor = 1.0, T_shaping = 1.8, temp_pedestal_ratio = 1.0, error = 1E-2, transport_model = :tglfnn, kw...)
parameters = AD_TAUENN.TauennParameters()
parameters.eped_factor = eped_factor
parameters.rho_fluxmatch = rho_fluxmatch
parameters.T_shaping = T_shaping
parameters.temp_pedestal_ratio = temp_pedestal_ratio
parameters.use_tglfnn = use_tglfnn
parameters.transport_model = transport_model
parameters.error = error
for param in keys(kw)
setfield!(parameters, param, kw[param])
Expand Down

0 comments on commit 718d8a7

Please sign in to comment.