示例#1
0
   def generate(self, path):
      context = dict()
      context["interface"] = self.accessor.properties
      generateFile(path, 'kernel/ExplicitEuler.templ.h', context)

      context["InterfaceTestName"] = "ExplicitEulerInterfaceCheck"
      context["KernelInclude"] = "kernel/ExplicitEuler.h"
      context["ExplicitInstantiation"] = "template void kernel::ExplicitEuler::operator()(const size_t p_idx1, Accessor& ac) const;"
      generateFile(path, 'tests/CheckInterface.templ.cpp', context, '../../tests/mesa_pd/kernel/interfaces/ExplicitEulerInterfaceCheck.cpp')
示例#2
0
    def generate(self, path):
        context = dict()
        context["parameters"] = [
            "stiffnessN", "stiffnessT", "dampingN", "dampingT",
            "frictionCoefficientStatic", "frictionCoefficientDynamic"
        ]
        context["interface"] = self.accessor.properties

        generateFile(path, 'kernel/LinearSpringDashpot.templ.h', context)
示例#3
0
   def generate(self, path):
      context = dict()
      context["parameters"]       = ["invHeatCapacity"]
      context["interface"] = self.accessor.properties
      generateFile(path, 'kernel/TemperatureIntegration.templ.h', context)

      context["InterfaceTestName"] = "TemperatureIntegrationInterfaceCheck"
      context["KernelInclude"] = "kernel/TemperatureIntegration.h"
      context["ExplicitInstantiation"] = "template void kernel::TemperatureIntegration::operator()(const size_t p_idx1, Accessor& ac) const;"
      generateFile(path, 'tests/CheckInterface.templ.cpp', context, '../../tests/mesa_pd/kernel/interfaces/TemperatureIntegrationInterfaceCheck.cpp')
示例#4
0
   def generate(self, path):
      context = dict()
      context["interface"] = self.accessor.properties

      generateFile(path, 'kernel/VelocityVerlet.templ.h', context)

      context["InterfaceTestName"] = "VelocityVerletInterfaceCheck"
      context["KernelInclude"] = "kernel/VelocityVerlet.h"
      context["ExplicitInstantiation"] = "template void kernel::VelocityVerletPreForceUpdate::operator()(const size_t p_idx1, Accessor& ac) const;\n" +\
      "template void kernel::VelocityVerletPostForceUpdate::operator()(const size_t p_idx1, Accessor& ac) const;"
      generateFile(path, 'tests/CheckInterface.templ.cpp', context, '../../tests/mesa_pd/kernel/interfaces/VelocityVerletInterfaceCheck.cpp')
示例#5
0
   def generate(self, path):
      context = dict()
      context["parameters"]       = ["conductance"]
      context["interface"]        = self.accessor.properties

      generateFile(path, 'kernel/HeatConduction.templ.h', context)

      context["InterfaceTestName"] = "HeatConductionInterfaceCheck"
      context["KernelInclude"] = "kernel/HeatConduction.h"
      context["ExplicitInstantiation"] = "template void kernel::HeatConduction::operator()(const size_t p_idx1, const size_t p_idx2, Accessor& ac) const;"
      generateFile(path, 'tests/CheckInterface.templ.cpp', context, '../../tests/mesa_pd/kernel/interfaces/HeatConductionInterfaceCheck.cpp')
示例#6
0
   def generate(self, path):
      context = dict()
      context["parameters"]       = ["stiffness", "dampingN", "dampingT", "friction"]
      context["interface"]        = self.accessor.properties

      generateFile(path, 'kernel/SpringDashpot.templ.h', context)

      context["InterfaceTestName"] = "SpringDashpotInterfaceCheck"
      context["KernelInclude"] = "kernel/SpringDashpot.h"
      context["ExplicitInstantiation"] = "template void kernel::SpringDashpot::operator()(const size_t p_idx1, const size_t p_idx2, Accessor& ac, const Vec3& contactPoint, const Vec3& contactNormal, const real_t& penetrationDepth) const;"
      generateFile(path, 'tests/CheckInterface.templ.cpp', context, '../../tests/mesa_pd/kernel/interfaces/SpringDashpotInterfaceCheck.cpp')
示例#7
0
   def generate(self, path):
      context = dict()
      context["parameters"]       = ["epsilon", "sigma"]
      context["interface"]        = self.accessor.properties

      generateFile(path, 'kernel/ForceLJ.templ.h', context)

      context["InterfaceTestName"] = "ForceLJInterfaceCheck"
      context["KernelInclude"] = "kernel/ForceLJ.h"
      context["ExplicitInstantiation"] = "template void kernel::ForceLJ::operator()(const size_t p_idx1, const size_t p_idx2, Accessor& ac) const;"
      generateFile(path, 'tests/CheckInterface.templ.cpp', context, '../../tests/mesa_pd/kernel/interfaces/ForceLJInterfaceCheck.cpp')
示例#8
0
    def generate(self, path):
        context = dict()
        context["interface"] = self.accessor.properties
        generateFile(path, 'kernel/ExplicitEuler.templ.h', context)

        context["InterfaceTestName"] = "ExplicitEulerInterfaceCheck"
        context["KernelInclude"] = "kernel/ExplicitEuler.h"
        context[
            "ExplicitInstantiation"] = "template void kernel::ExplicitEuler::operator()(const size_t p_idx1, Accessor& ac) const;"
        generateFile(
            path, 'tests/CheckInterface.templ.cpp', context,
            '../../tests/mesa_pd/kernel/interfaces/ExplicitEulerInterfaceCheck.cpp'
        )
示例#9
0
    def generate(self, path):
        context = dict()
        context["interface"] = self.accessor.properties

        generateFile(path, 'kernel/VelocityVerlet.templ.h', context)

        context["InterfaceTestName"] = "VelocityVerletInterfaceCheck"
        context["KernelInclude"] = "kernel/VelocityVerlet.h"
        context["ExplicitInstantiation"] = "template void kernel::VelocityVerletPreForceUpdate::operator()(const size_t p_idx1, Accessor& ac) const;\n" +\
        "template void kernel::VelocityVerletPostForceUpdate::operator()(const size_t p_idx1, Accessor& ac) const;"
        generateFile(
            path, 'tests/CheckInterface.templ.cpp', context,
            '../../tests/mesa_pd/kernel/interfaces/VelocityVerletInterfaceCheck.cpp'
        )
示例#10
0
 def generate(self, path):
     context = dict()
     context["interface"] = self.accessor.properties
     generateFile(path, 'kernel/InsertParticleIntoLinkedCells.templ.h',
                  context)
示例#11
0
 def generate(self, path):
    context = dict()
    context["interface"] = self.accessor.properties
    generateFile(path, 'mpi/ClearNextNeighborSync.templ.h', context)
示例#12
0
 def generate(self, path):
     context = dict()
     context["interface"] = self.accessor.properties
     context["shapes"] = self.shapes
     generateFile(path, 'kernel/SingleCast.templ.h', context)
示例#13
0
 def generate(self, path):
     context = dict()
     context["interface"] = self.accessor.properties
     generateFile(path, 'mpi/ClearNextNeighborSync.templ.h', context)
示例#14
0
 def generate(self, path):
     context = dict()
     context["interface"] = self.accessor.properties
     generateFile(path, 'kernel/DetectAndStoreContacts.templ.h', context)
示例#15
0
   def generate(self, path):
      context = dict()
      context["parameters"]       = ["lnCORsqr", "meff", "stiffnessT", "dampingT", "frictionCoefficientStatic", "frictionCoefficientDynamic"]
      context["interface"]        = self.accessor.properties

      generateFile(path, 'kernel/NonLinearSpringDashpot.templ.h', context)
示例#16
0
 def generate(self, path):
    context = dict()
    context["interface"] = self.accessor.properties
    context["shapes"]    = self.shapes
    generateFile(path, 'kernel/DoubleCast.templ.h', context)