@@ -48,7 +48,7 @@ pub struct ReconstructSubcommandArgs {
4848 surface_threshold : f64 ,
4949 /// Whether to enable the use of double precision for all computations
5050 #[ structopt( short = "-d" , long, default_value = "off" , possible_values = & [ "on" , "off" ] , case_insensitive = true ) ]
51- use_double_precision : Switch ,
51+ double_precision : Switch ,
5252 /// Lower corner of the domain where surface reconstruction should be performed, format: domain-min=x_min;y_min;z_min (requires domain-max to be specified)
5353 #[ structopt(
5454 long,
@@ -67,10 +67,10 @@ pub struct ReconstructSubcommandArgs {
6767 domain_max : Option < Vec < f64 > > ,
6868 /// Whether to enable spatial decomposition using an octree (faster) instead of a global approach
6969 #[ structopt( long, default_value = "on" , possible_values = & [ "on" , "off" ] , case_insensitive = true ) ]
70- use_octree : Switch ,
71- /// Whether to enable stitching of the disjoint subdomain meshes when spatial decomposition is enabled (slower but results in closed meshes)
72- #[ structopt( long, default_value = "on" , possible_values = & [ "on" , "off" ] , case_insensitive = true ) ]
73- use_stitching : Switch ,
70+ octree_decomposition : Switch ,
71+ /// Whether to enable stitching of the disconnected local meshes when spatial decomposition is enabled (slower, but without stitching meshes will not be closed )
72+ #[ structopt( name= "octree_stitch_subdomains" , long, default_value = "on" , possible_values = & [ "on" , "off" ] , case_insensitive = true ) ]
73+ stitch_subdomains : Switch ,
7474 /// The maximum number of particles for leaf nodes of the octree, default is to compute it based on number of threads and particles
7575 #[ structopt( long) ]
7676 octree_max_particles : Option < usize > ,
@@ -204,7 +204,7 @@ mod arguments {
204204 . map ( |r| args. particle_radius * r) ;
205205 let cube_size = args. particle_radius * args. cube_size ;
206206
207- let spatial_decomposition = if !args. use_octree . into_bool ( ) {
207+ let spatial_decomposition = if !args. octree_decomposition . into_bool ( ) {
208208 None
209209 } else {
210210 let subdivision_criterion = if let Some ( max_particles) = args. octree_max_particles {
@@ -213,7 +213,7 @@ mod arguments {
213213 splashsurf_lib:: SubdivisionCriterion :: MaxParticleCountAuto
214214 } ;
215215 let ghost_particle_safety_factor = args. octree_ghost_margin_factor ;
216- let enable_stitching = args. use_stitching . into_bool ( ) ;
216+ let enable_stitching = args. stitch_subdomains . into_bool ( ) ;
217217
218218 Some ( splashsurf_lib:: SpatialDecompositionParameters {
219219 subdivision_criterion,
@@ -242,7 +242,7 @@ mod arguments {
242242
243243 Ok ( ReconstructionRunnerArgs {
244244 params,
245- use_double_precision : args. use_double_precision . into_bool ( ) ,
245+ use_double_precision : args. double_precision . into_bool ( ) ,
246246 check_mesh : args. check_mesh . into_bool ( ) ,
247247 io_params : io:: FormatParameters :: default ( ) ,
248248 } )
0 commit comments