Skip to content

Commit

Permalink
Remove last template
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiLehe committed Sep 23, 2024
1 parent 68abffc commit cc5443f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
16 changes: 14 additions & 2 deletions Source/ablastr/fields/MultiFabRegister.H
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ namespace ablastr::fields
int level
)
{
erase<std::string const &>(getExtractedName(name), level);
internal_erase(getExtractedName(name), level);
}

/** Deallocate and remove a vector field component.
Expand All @@ -608,7 +608,7 @@ namespace ablastr::fields
int level
)
{
erase<std::string const &>(getExtractedName(name), dir, level);
internal_erase(getExtractedName(name), dir, level);
}

/** Erase all MultiFabs on a specific MR level.
Expand Down Expand Up @@ -783,6 +783,18 @@ namespace ablastr::fields
int finest_level
) const;

void
internal_erase (
std::string const & name,
int level
);
void
internal_erase (
std::string const & name,
Direction dir,
int level
);

/** data storage: ownership and lifetime control */
std::map<
std::string,
Expand Down
6 changes: 2 additions & 4 deletions Source/ablastr/fields/MultiFabRegister.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,8 @@ namespace ablastr::fields
return names;
}

template<>
void
MultiFabRegister::erase<std::string const &> (
MultiFabRegister::internal_erase (
std::string const & name,
int level
)
Expand All @@ -543,9 +542,8 @@ namespace ablastr::fields
m_mf_register.erase(internal_name);
}

template<>
void
MultiFabRegister::erase<std::string const &> (
MultiFabRegister::internal_erase (
std::string const & name,
Direction dir,
int level
Expand Down

0 comments on commit cc5443f

Please sign in to comment.