Skip to content

Commit b9a61a5

Browse files
authored
Merge pull request #6885 from gassmoeller/fix_double_instantiations
Remove unnecessary explicit instantiations
2 parents 807fe3e + c51e1e7 commit b9a61a5

File tree

28 files changed

+3
-359
lines changed

28 files changed

+3
-359
lines changed

include/aspect/plugins.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -604,10 +604,10 @@ namespace aspect
604604
* reason: objects with static initializers (such as =0) are
605605
* initialized before any objects for which one needs to run
606606
* constructors. Consequently, we can be sure that this pointer is set
607-
* to zero before we ever try to register a postprocessor, and
608-
* consequently whenever we run Manager::register_postprocessor, we
607+
* to zero before we ever try to register a plugin, and
608+
* consequently whenever we run register_plugin(), we
609609
* need not worry whether we try to add something to this list before
610-
* the lists's constructor has successfully run
610+
* the lists's constructor has successfully run.
611611
*/
612612
static std::list<PluginInfo> *plugins;
613613

source/adiabatic_conditions/interface.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -176,19 +176,6 @@ namespace aspect
176176
// explicit instantiations
177177
namespace aspect
178178
{
179-
namespace internal
180-
{
181-
namespace Plugins
182-
{
183-
template <>
184-
std::list<internal::Plugins::PluginList<AdiabaticConditions::Interface<2>>::PluginInfo> *
185-
internal::Plugins::PluginList<AdiabaticConditions::Interface<2>>::plugins = nullptr;
186-
template <>
187-
std::list<internal::Plugins::PluginList<AdiabaticConditions::Interface<3>>::PluginInfo> *
188-
internal::Plugins::PluginList<AdiabaticConditions::Interface<3>>::plugins = nullptr;
189-
}
190-
}
191-
192179
namespace AdiabaticConditions
193180
{
194181
#define INSTANTIATE(dim) \

source/boundary_composition/interface.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -332,19 +332,6 @@ namespace aspect
332332
// explicit instantiations
333333
namespace aspect
334334
{
335-
namespace internal
336-
{
337-
namespace Plugins
338-
{
339-
template <>
340-
std::list<internal::Plugins::PluginList<BoundaryComposition::Interface<2>>::PluginInfo> *
341-
internal::Plugins::PluginList<BoundaryComposition::Interface<2>>::plugins = nullptr;
342-
template <>
343-
std::list<internal::Plugins::PluginList<BoundaryComposition::Interface<3>>::PluginInfo> *
344-
internal::Plugins::PluginList<BoundaryComposition::Interface<3>>::plugins = nullptr;
345-
}
346-
}
347-
348335
namespace BoundaryComposition
349336
{
350337
#define INSTANTIATE(dim) \

source/boundary_convective_heating/interface.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -400,19 +400,6 @@ namespace aspect
400400
// explicit instantiations
401401
namespace aspect
402402
{
403-
namespace internal
404-
{
405-
namespace Plugins
406-
{
407-
template <>
408-
std::list<internal::Plugins::PluginList<BoundaryConvectiveHeating::Interface<2>>::PluginInfo> *
409-
internal::Plugins::PluginList<BoundaryConvectiveHeating::Interface<2>>::plugins = nullptr;
410-
template <>
411-
std::list<internal::Plugins::PluginList<BoundaryConvectiveHeating::Interface<3>>::PluginInfo> *
412-
internal::Plugins::PluginList<BoundaryConvectiveHeating::Interface<3>>::plugins = nullptr;
413-
}
414-
}
415-
416403
namespace BoundaryConvectiveHeating
417404
{
418405
#define INSTANTIATE(dim) \

source/boundary_fluid_pressure/interface.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,6 @@ namespace aspect
109109
// explicit instantiations
110110
namespace aspect
111111
{
112-
namespace internal
113-
{
114-
namespace Plugins
115-
{
116-
template <>
117-
std::list<internal::Plugins::PluginList<BoundaryFluidPressure::Interface<2>>::PluginInfo> *
118-
internal::Plugins::PluginList<BoundaryFluidPressure::Interface<2>>::plugins = nullptr;
119-
template <>
120-
std::list<internal::Plugins::PluginList<BoundaryFluidPressure::Interface<3>>::PluginInfo> *
121-
internal::Plugins::PluginList<BoundaryFluidPressure::Interface<3>>::plugins = nullptr;
122-
}
123-
}
124-
125112
namespace BoundaryFluidPressure
126113
{
127114
#define INSTANTIATE(dim) \

source/boundary_heat_flux/interface.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,6 @@ namespace aspect
109109
// explicit instantiations
110110
namespace aspect
111111
{
112-
namespace internal
113-
{
114-
namespace Plugins
115-
{
116-
template <>
117-
std::list<internal::Plugins::PluginList<BoundaryHeatFlux::Interface<2>>::PluginInfo> *
118-
internal::Plugins::PluginList<BoundaryHeatFlux::Interface<2>>::plugins = nullptr;
119-
template <>
120-
std::list<internal::Plugins::PluginList<BoundaryHeatFlux::Interface<3>>::PluginInfo> *
121-
internal::Plugins::PluginList<BoundaryHeatFlux::Interface<3>>::plugins = nullptr;
122-
}
123-
}
124-
125112
namespace BoundaryHeatFlux
126113
{
127114
#define INSTANTIATE(dim) \

source/boundary_temperature/interface.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -346,19 +346,6 @@ namespace aspect
346346
// explicit instantiations
347347
namespace aspect
348348
{
349-
namespace internal
350-
{
351-
namespace Plugins
352-
{
353-
template <>
354-
std::list<internal::Plugins::PluginList<BoundaryTemperature::Interface<2>>::PluginInfo> *
355-
internal::Plugins::PluginList<BoundaryTemperature::Interface<2>>::plugins = nullptr;
356-
template <>
357-
std::list<internal::Plugins::PluginList<BoundaryTemperature::Interface<3>>::PluginInfo> *
358-
internal::Plugins::PluginList<BoundaryTemperature::Interface<3>>::plugins = nullptr;
359-
}
360-
}
361-
362349
namespace BoundaryTemperature
363350
{
364351
#define INSTANTIATE(dim) \

source/boundary_traction/interface.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -351,19 +351,6 @@ namespace aspect
351351
// explicit instantiations
352352
namespace aspect
353353
{
354-
namespace internal
355-
{
356-
namespace Plugins
357-
{
358-
template <>
359-
std::list<internal::Plugins::PluginList<BoundaryTraction::Interface<2>>::PluginInfo> *
360-
internal::Plugins::PluginList<BoundaryTraction::Interface<2>>::plugins = nullptr;
361-
template <>
362-
std::list<internal::Plugins::PluginList<BoundaryTraction::Interface<3>>::PluginInfo> *
363-
internal::Plugins::PluginList<BoundaryTraction::Interface<3>>::plugins = nullptr;
364-
}
365-
}
366-
367354
namespace BoundaryTraction
368355
{
369356
#define INSTANTIATE(dim) \

source/boundary_velocity/interface.cc

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -444,19 +444,6 @@ namespace aspect
444444
// explicit instantiations
445445
namespace aspect
446446
{
447-
namespace internal
448-
{
449-
namespace Plugins
450-
{
451-
template <>
452-
std::list<internal::Plugins::PluginList<BoundaryVelocity::Interface<2>>::PluginInfo> *
453-
internal::Plugins::PluginList<BoundaryVelocity::Interface<2>>::plugins = nullptr;
454-
template <>
455-
std::list<internal::Plugins::PluginList<BoundaryVelocity::Interface<3>>::PluginInfo> *
456-
internal::Plugins::PluginList<BoundaryVelocity::Interface<3>>::plugins = nullptr;
457-
}
458-
}
459-
460447
namespace BoundaryVelocity
461448
{
462449
#define INSTANTIATE(dim) \

source/geometry_model/initial_topography_model/interface.cc

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -130,20 +130,6 @@ namespace aspect
130130
// explicit instantiations
131131
namespace aspect
132132
{
133-
namespace internal
134-
{
135-
namespace Plugins
136-
{
137-
template <>
138-
std::list<internal::Plugins::PluginList<InitialTopographyModel::Interface<2>>::PluginInfo> *
139-
internal::Plugins::PluginList<InitialTopographyModel::Interface<2>>::plugins = nullptr;
140-
141-
template <>
142-
std::list<internal::Plugins::PluginList<InitialTopographyModel::Interface<3>>::PluginInfo> *
143-
internal::Plugins::PluginList<InitialTopographyModel::Interface<3>>::plugins = nullptr;
144-
}
145-
}
146-
147133
namespace InitialTopographyModel
148134
{
149135
#define INSTANTIATE(dim) \

0 commit comments

Comments
 (0)