Skip to content

Commit

Permalink
Always use Time_Calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
ckhroulev committed Aug 30, 2021
1 parent fe4f486 commit c14e554
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/util/Time.cc
Expand Up @@ -62,11 +62,7 @@ Time::Ptr time_from_options(MPI_Comm com, Config::ConstPtr config, units::System
try {
std::string calendar = calendar_from_options(com, *config);

if (member(calendar, {"360_day", "365_day", "noleap", "none"})) {
return Time::Ptr(new Time(config, calendar, system));
} else {
return Time::Ptr(new Time_Calendar(com, config, calendar, system));
}
return Time::Ptr(new Time_Calendar(com, config, calendar, system));

} catch (RuntimeError &e) {
e.add_context("initializing Time from options");
Expand Down

0 comments on commit c14e554

Please sign in to comment.