Skip to content

Commit 28b694d

Browse files
committedAug 16, 2021
Updates for small things
1 parent e6c470e commit 28b694d

File tree

5 files changed

+86
-56
lines changed

5 files changed

+86
-56
lines changed
 

‎NDA_Notebook.pdf

-6.94 KB
Binary file not shown.

‎QMC-NDA-Woes.ipynb

+79-52
Large diffs are not rendered by default.

‎src/.source_iteration.jl.swp

-4 KB
Binary file not shown.

‎src/NDA_QMC.jl

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export nda_fixed
3737
export nda_init
3838
export dhateval!
3939
export ctk_qmc_nda_test
40+
export avg2edge!
4041
export qmc_nda
4142
export sn_solve
4243

‎src/Tim_QMC/qmc_nda.jl

+6-4
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ end
3737
return(phiout=phiout, ithist=ithist)
3838
end
3939

40-
function avg2edge!(phi_edge, dphi, phi_avg,qmc_nda_data)
41-
sn_data=qmc_nda_data.nda_data.sn_data
42-
dx=sn_data.dx
40+
#function avg2edge!(phi_edge, dphi, phi_avg,qmc_nda_data)
41+
#sn_data=qmc_nda_data.nda_data.sn_data
42+
function avg2edge!(phi_edge, dphi, phi_avg, dx)
4343
Nx=length(phi_avg)
4444
m=length(phi_edge)
4545
Nx==length(dphi) || error("dphi lives on cell centers")
@@ -61,8 +61,10 @@ nda_data=qmc_nda_data.nda_data
6161
Nx=length(phi)
6262
phi_edge=zeros(Nx+1,)
6363
dphi=zeros(Nx,)
64+
dx=1.0/Nx
6465
qout=qmc_sweep(phi,qmc_data)
65-
avg2edge!(phi_edge, dphi, qout.phi_avg,qmc_nda_data)
66+
#avg2edge!(phi_edge, dphi, qout.phi_avg,qmc_nda_data)
67+
avg2edge!(phi_edge, dphi, qout.phi_avg, dx)
6668
dhat=(qout.J_avg + (dphi./3.0))./qout.phi_avg
6769
#println(norm(dhat-dhatp,Inf)," ",norm(dphi-dphip))
6870
#

0 commit comments

Comments
 (0)