Skip to content

Issue410 osi restart#419

Merged
tdcwilliams merged 6 commits intomasterfrom
issue410-osi-restart
Apr 27, 2020
Merged

Issue410 osi restart#419
tdcwilliams merged 6 commits intomasterfrom
issue410-osi-restart

Conversation

@tdcwilliams
Copy link
Copy Markdown
Contributor

Solves problem where the 2 OSISAF drifters were duplicating each other when another drifter was active and when only one was in the restart file - see #410

@tdcwilliams tdcwilliams requested review from akorosov and einola March 31, 2020 09:41
Copy link
Copy Markdown
Member

@einola einola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small change to not use std::cout - you need to change it before merging - but I didn't want to go through the "request changes" back-and-forth ;)

Comment thread model/drifters.cpp Outdated
{
double const restart_time = field_map_dbl["Time"][0];
bool in_restart = false;
std::cout << M_tag << " drifters: restart time = " << restart_time << " = " << datenumToString(restart_time) << "\n";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
std::cout << M_tag << " drifters: restart time = " << restart_time << " = " << datenumToString(restart_time) << "\n";
LOG(DEBUG) << M_tag << " drifters: restart time = " << restart_time << " = " << datenumToString(restart_time) << "\n";

Comment thread model/drifters.cpp Outdated
std::cout<< M_tag<<" drifters: ignoring restart and initialising from scratch\n";
else
in_restart = readFromRestart(field_map_int, field_map_dbl);
std::cout << M_tag << " drifters: init time = " << M_time_init << " = " << datenumToString(M_time_init) << "\n";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
std::cout << M_tag << " drifters: init time = " << M_time_init << " = " << datenumToString(M_time_init) << "\n";
LOG(DEBUG) << M_tag << " drifters: init time = " << M_time_init << " = " << datenumToString(M_time_init) << "\n";

@tdcwilliams tdcwilliams merged commit b35722f into master Apr 27, 2020
@tdcwilliams tdcwilliams deleted the issue410-osi-restart branch April 27, 2020 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants