Closed dere4 closed 2 years ago
Also the @turbo sped up things quite a bit, its more than twice as fast now. Wouldn't it make sense to define all arrays used in update! as static arrays? afaik its about the size not mutability, so that would work no? U = zeros(nvariables, ncells+2) # need to allocate room for ghost cells. I mean all of these, except for A maybe: F = zeros(nvariables, nedges) UL = zeros(nvariables, nedges) UR = zeros(nvariables, nedges) Q = zeros(nvariables) A = Tridiagonal(zeros(ncells-1), zeros(ncells), zeros(ncells-1)) #for potential equation A*ϕ = b b = zeros(ncells) #for potential equation ϕ = zeros(ncells) #for potential equation Tev = zeros(ncells+2)
Merging #21 (06fa1fd) into main (5f381d1) will increase coverage by
4.94%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## main #21 +/- ##
==========================================
+ Coverage 90.66% 95.61% +4.94%
==========================================
Files 12 12
Lines 450 456 +6
==========================================
+ Hits 408 436 +28
+ Misses 42 20 -22
Impacted Files | Coverage Δ | |
---|---|---|
src/electrontransport.jl | 100.00% <100.00%> (+30.76%) |
:arrow_up: |
src/simulation.jl | 91.30% <100.00%> (ø) |
|
src/sourceterms.jl | 100.00% <100.00%> (+26.47%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 5f381d1...06fa1fd. Read the comment docs.
readded test for ionization, everything should work fine now. Use global variable for Tev. added using StaticArrays to run.jl (dunno if you tried to do it differently, didnt figure it out though and SA wasn't defined). Also using actual electron and neutral densities for v_c calculations, and realistic Hall Thruster densities initially. Outcome makes sense on surface. Now trying to move on to what I wrote before.