Skip to content

Commit

Permalink
Updating scripts and functions
Browse files Browse the repository at this point in the history
  • Loading branch information
natgeo-wong committed Oct 14, 2024
1 parent 2d0572a commit c63993c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/modifysam/modifyprm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include(srcdir("sam.jl"))
schname = "DGW"
expname = "P1282km300V64"

if schname == "DGW"
if (schname == "DGW") || (schname == "LGW")
wtgvec = [0.02,0.05,0.1,0.2,0.5,1,2,5,10,20,50,100,200,500]
else
wtgvec = [sqrt(2),2,2*sqrt(2.5),5,5*sqrt(2)]
Expand All @@ -20,7 +20,7 @@ tprm = projectdir("exp","tmp.prm")
for wtgii in wtgvec

wtgstring = powername(wtgii,schname)
if schname == "DGW"
if (schname == "DGW") || (schname == "LGW")
wtgdmp = wtgii; wtgrlx = 1
else; wtgrlx = wtgii; wtgdmp = 1
end
Expand Down
2 changes: 1 addition & 1 deletion scripts/modifysam/modifyrun.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ expname = "P1282km300V64"
email = ""
doBuild = true

if schname == "DGW"
if (schname == "DGW") || (schname == "LGW")
pwrvec = [0.02,0.05,0.1,0.2,0.5,1,2,5,10,20,50,100,200,500]
else
pwrvec = [sqrt(2),2,2*sqrt(2.5),5,5*sqrt(2)]
Expand Down
2 changes: 1 addition & 1 deletion src/sam.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function powername(
scheme :: AbstractString
)

if scheme == "DGW"
if (scheme == "DGW") || (scheme == "LGW")
return dampingstrprnt(power)
else
return relaxscalestrprnt(power)
Expand Down

0 comments on commit c63993c

Please sign in to comment.