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')
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)
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')
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')
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')
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')
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')
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' )
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' )
def generate(self, path): context = dict() context["interface"] = self.accessor.properties generateFile(path, 'kernel/InsertParticleIntoLinkedCells.templ.h', context)
def generate(self, path): context = dict() context["interface"] = self.accessor.properties generateFile(path, 'mpi/ClearNextNeighborSync.templ.h', context)
def generate(self, path): context = dict() context["interface"] = self.accessor.properties context["shapes"] = self.shapes generateFile(path, 'kernel/SingleCast.templ.h', context)
def generate(self, path): context = dict() context["interface"] = self.accessor.properties generateFile(path, 'kernel/DetectAndStoreContacts.templ.h', context)
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)
def generate(self, path): context = dict() context["interface"] = self.accessor.properties context["shapes"] = self.shapes generateFile(path, 'kernel/DoubleCast.templ.h', context)