Skip to content
Snippets Groups Projects
Commit 73d8a4d6 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Use explicit pointers to hande ParticeDescriptor tests

parent 8bd360da
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ int test_cluster_devel() {
const string scat_data_file = "../../test_data/cluster/DEDFB";
GeometryConfiguration *gconf = GeometryConfiguration::from_legacy(geom_data_file);
ScattererConfiguration *sconf = ScattererConfiguration::from_dedfb(scat_data_file);
ParticleDescriptor *pd = new ParticleDescriptorCluster(gconf, sconf);
ParticleDescriptorCluster *pd = new ParticleDescriptorCluster(gconf, sconf);
delete gconf;
delete sconf;
delete pd;
......@@ -73,7 +73,7 @@ int test_inclusion() {
const string scat_data_file = "../../test_data/inclusion/DEDFB";
GeometryConfiguration *gconf = GeometryConfiguration::from_legacy(geom_data_file);
ScattererConfiguration *sconf = ScattererConfiguration::from_dedfb(scat_data_file);
ParticleDescriptor *pd = new ParticleDescriptorInclusion(gconf, sconf);
ParticleDescriptorInclusion *pd = new ParticleDescriptorInclusion(gconf, sconf);
delete gconf;
delete sconf;
delete pd;
......@@ -90,7 +90,7 @@ int test_sphere() {
const string scat_data_file = "../../test_data/sphere/DEDFB";
GeometryConfiguration *gconf = GeometryConfiguration::from_legacy(geom_data_file);
ScattererConfiguration *sconf = ScattererConfiguration::from_dedfb(scat_data_file);
ParticleDescriptor *pd = new ParticleDescriptorSphere(gconf, sconf);
ParticleDescriptorSphere *pd = new ParticleDescriptorSphere(gconf, sconf);
delete gconf;
delete sconf;
delete pd;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment