Skip to content

Commit

Permalink
address reviewer comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mattldawson committed Oct 2, 2024
1 parent d85b4e4 commit d90c3c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/musica/tuvx/tuvx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace musica
/// @brief Run the TUV-x photolysis calculator
/// @param solar_zenith_angle Solar zenith angle [radians]
/// @param earth_sun_distance Earth-Sun distance [AU]
/// @param photolysis_rate_constants Photolysis rate constant layer and reaction [s^-1]
/// @param photolysis_rate_constants Photolysis rate constant for each layer and reaction [s^-1]
/// @param heating_rates Heating rates for each layer and reaction [K/s]
/// @param error Error struct to indicate success or failure
void Run(const double solar_zenith_angle, const double earth_sun_distance,
Expand Down
3 changes: 2 additions & 1 deletion src/tuvx/tuvx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <cstring>
#include <filesystem>
#include <iostream>
#include <numbers>

namespace musica
{
Expand Down Expand Up @@ -164,7 +165,7 @@ namespace musica
{
*error = NoError();
int error_code = 0;
double sza_degrees = solar_zenith_angle * 180.0 / M_PI;
double sza_degrees = solar_zenith_angle * 180.0 / std::numbers::pi;
InternalRunTuvx(tuvx_, this->number_of_layers_, sza_degrees, earth_sun_distance, photolysis_rate_constants, heating_rates, &error_code);
if (error_code != 0)
{
Expand Down

0 comments on commit d90c3c9

Please sign in to comment.