Skip to content

Commit

Permalink
changes rtol in array comparison for coated antenna test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto-o committed Dec 3, 2024
1 parent f4caa66 commit 3eab136
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src_mtln/circuit.F90
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ subroutine init(this, names, sources, netlist)

call start()
if (present(netlist)) then
write(*,*) 'load netlist'
call this%loadNetlist(netlist)
end if

Expand Down
1 change: 0 additions & 1 deletion src_mtln/preprocess.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,6 @@ function buildNetworkManager(this, terminal_networks) result(res)
call addAnalysis(description, this%final_time, this%dt, 100)
call addSavedNodes(description, networks)
call endDescription(description)

res = network_managerCtor(networks, description, this%final_time, this%dt)

end function
Expand Down
2 changes: 1 addition & 1 deletion test/pyWrapper/test_full_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_dielectric_antenna(tmp_path):
p_expected = Probe(OUTPUT_FOLDER+'coated_antenna.fdtd_mid_point_Wz_11_11_11_s2.dat')

p_solved = Probe(probe_files[0])
assert np.allclose(p_expected.df.to_numpy()[:,0:3], p_solved.df.to_numpy()[:,0:3], rtol = 1e-5, atol=1e-6)
assert np.allclose(p_expected.df.to_numpy()[:,0:3], p_solved.df.to_numpy()[:,0:3], rtol = 1e-3, atol=1e-6)


def test_holland(tmp_path):
Expand Down

0 comments on commit 3eab136

Please sign in to comment.