-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename the tend and use init_timestep
- Loading branch information
Showing
8 changed files
with
92 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#ifndef EAMXX_ATM_BACKTEND_DIAG_HPP | ||
#define EAMXX_ATM_BACKTEND_DIAG_HPP | ||
|
||
#include "share/atm_process/atmosphere_diagnostic.hpp" | ||
#include "share/util/scream_time_stamp.hpp" | ||
|
||
namespace scream { | ||
|
||
/* | ||
* This diagnostic will back out the atmosphere tendency of a given field. | ||
*/ | ||
|
||
class AtmBackTendDiag : public AtmosphereDiagnostic { | ||
public: | ||
// Constructors | ||
AtmBackTendDiag(const ekat::Comm &comm, const ekat::ParameterList ¶ms); | ||
|
||
// The name of the diagnostic | ||
std::string name() const; | ||
|
||
// Set the grid | ||
void set_grids(const std::shared_ptr<const GridsManager> grids_manager); | ||
|
||
protected: | ||
#ifdef KOKKOS_ENABLE_CUDA | ||
public: | ||
#endif | ||
void compute_diagnostic_impl(); | ||
|
||
// Let's override the init time step method | ||
void init_timestep(const util::TimeStamp &start_of_step) override; | ||
|
||
// Let's override the initialize method to set the fields below | ||
void initialize_impl(const RunType /*run_type*/) override; | ||
|
||
// Keep track of field dimensions | ||
int m_num_cols; | ||
int m_num_levs; | ||
|
||
// The tendency of what? | ||
std::string m_name; | ||
|
||
// Store the previous field | ||
Field m_f_prev; | ||
|
||
// Store the timestamp of the start of the timestep | ||
util::TimeStamp m_start_t; | ||
|
||
}; // class AtmBackTendDiag | ||
|
||
} // namespace scream | ||
|
||
#endif // EAMXX_ATM_BACKTEND_DIAG_HPP |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters