Skip to content

Commit

Permalink
AbstractCLibBmiAdapter: De-template since the bmi_model member is mov…
Browse files Browse the repository at this point in the history
…ed down
  • Loading branch information
PhilMiller committed Nov 13, 2023
1 parent 33f53df commit f2c3074
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion include/bmi/AbstractCLibBmiAdapter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
namespace models {
namespace bmi {

template <class C>
class AbstractCLibBmiAdapter : public Bmi_Adapter {

public:
Expand Down
2 changes: 1 addition & 1 deletion include/bmi/Bmi_C_Adapter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace models {
* An adapter class to serve as a C++ interface to the essential aspects of external models written in the C
* language that implement the BMI.
*/
class Bmi_C_Adapter : public AbstractCLibBmiAdapter<C_Bmi> {
class Bmi_C_Adapter : public AbstractCLibBmiAdapter {

public:

Expand Down
2 changes: 1 addition & 1 deletion include/bmi/Bmi_Cpp_Adapter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace models {
* loaded dynamically from libraries. This is less important than e.g. @see Bmi_C_Adapter but still provides
* some useful generalized functionality.
*/
class Bmi_Cpp_Adapter : public AbstractCLibBmiAdapter<Cpp_Bmi> {
class Bmi_Cpp_Adapter : public AbstractCLibBmiAdapter {

public:

Expand Down
2 changes: 1 addition & 1 deletion include/bmi/Bmi_Fortran_Adapter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace models {
* An adapter class to serve as a C++ interface to the essential aspects of external models written in the
* Fortran language that implement the BMI.
*/
class Bmi_Fortran_Adapter : public AbstractCLibBmiAdapter<Bmi_Fortran_Handle_Wrapper> {
class Bmi_Fortran_Adapter : public AbstractCLibBmiAdapter {

public:

Expand Down
2 changes: 1 addition & 1 deletion src/bmi/Bmi_C_Adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Bmi_C_Adapter::Bmi_C_Adapter(const std::string &type_name, std::string library_f
Bmi_C_Adapter::Bmi_C_Adapter(const std::string &type_name, std::string library_file_path, std::string bmi_init_config,
std::string forcing_file_path, bool allow_exceed_end, bool has_fixed_time_step,
std::string registration_func, utils::StreamHandler output, bool do_initialization)
: AbstractCLibBmiAdapter<C_Bmi>(type_name, library_file_path, std::move(bmi_init_config), std::move(forcing_file_path), allow_exceed_end,
: AbstractCLibBmiAdapter(type_name, library_file_path, std::move(bmi_init_config), std::move(forcing_file_path), allow_exceed_end,
has_fixed_time_step, registration_func, output)
{
if (do_initialization) {
Expand Down
2 changes: 1 addition & 1 deletion src/bmi/Bmi_Cpp_Adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Bmi_Cpp_Adapter::Bmi_Cpp_Adapter(const std::string& type_name, std::string libra
std::string forcing_file_path, bool allow_exceed_end, bool has_fixed_time_step,
std::string creator_func, std::string destroyer_func,
utils::StreamHandler output, bool do_initialization)
: AbstractCLibBmiAdapter<Cpp_Bmi>(type_name, library_file_path, std::move(bmi_init_config), std::move(forcing_file_path), allow_exceed_end,
: AbstractCLibBmiAdapter(type_name, library_file_path, std::move(bmi_init_config), std::move(forcing_file_path), allow_exceed_end,
has_fixed_time_step, creator_func, output),
model_create_fname(std::move(creator_func)),
model_destroy_fname(std::move(destroyer_func))
Expand Down

0 comments on commit f2c3074

Please sign in to comment.