Skip to content

Commit

Permalink
Fix bug in s-parameters printer
Browse files Browse the repository at this point in the history
  • Loading branch information
phdum-a committed Dec 24, 2024
1 parent 5a106c8 commit 20660d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion palace/drivers/drivensolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ void DrivenSolver::SParametersPostPrinter::AddMeasurement(
std::complex<double> S_ij = post_op.GetSParameter(src_lumped_port, o_idx, source_idx);

auto abs_S_ij = 20.0 * std::log10(std::abs(S_ij));
auto arg_S_ij = std::arg(S_ij) * 180.8 / M_PI;
auto arg_S_ij = std::arg(S_ij) * 180.0 / M_PI;

port_S.table[format("abs_{}_{}", o_idx, source_idx)] << abs_S_ij;
port_S.table[format("arg_{}_{}", o_idx, source_idx)] << arg_S_ij;
Expand Down

0 comments on commit 20660d6

Please sign in to comment.