@@ -113,15 +113,29 @@ void SystemInterface::enroll_options()
113113 "Combine nodes if they are within tolerance distance of each other." , nullptr );
114114
115115 options_ .enroll ("match_nodeset_nodes" , GetLongOption ::MandatoryValue ,
116- "Combine nodes in the specified nodeset(s) if they are within `tolerance` "
117- "distance of each other.\n"
116+ "Combine nodes in the specified nodeset(s) if they are within\n "
117+ "\t\t`tolerance` distance of each other.\n"
118118 "\t\tSpecify nodesets in each part as p#:id1:id2,p#:id2,id4..." ,
119119 nullptr );
120120
121121 options_ .enroll ("tolerance" , GetLongOption ::MandatoryValue ,
122122 "Maximum distance between two nodes to be considered colocated." , nullptr ,
123123 nullptr , true);
124124
125+ options_ .enroll (
126+ "combine_nodesets" , GetLongOption ::NoValue ,
127+ "Input nodesets with the same name will be combined into a single nodeset on output." ,
128+ nullptr );
129+ options_ .enroll ("combine_sidesets" , GetLongOption ::NoValue ,
130+ "Input sidesets with the same name will be combined into a "
131+ "single sideset on output." ,
132+ nullptr );
133+ options_ .enroll ("combine_element_blocks" , GetLongOption ::NoValue ,
134+ "Element blocks with the same name and topology will be "
135+ "combined into a\n"
136+ "\t\tsingle element block on output." ,
137+ nullptr , nullptr , true);
138+
125139#if 0
126140 options_ .enroll ("match_elem_ids" , GetLongOption ::NoValue ,
127141 "Combine elements if their global ids match and they are compatible.\n"
@@ -220,7 +234,8 @@ void SystemInterface::enroll_options()
220234 nullptr );
221235
222236 options_ .enroll ("quantize_nsd" , GetLongOption ::MandatoryValue ,
223- "Use the lossy quantize compression method. Value specifies number of digits to "
237+ "Use the lossy quantize compression method.\n"
238+ "\t\tValue specifies number of digits to "
224239 "retain (1..15) [exodus only]" ,
225240 nullptr , nullptr , true);
226241
@@ -276,10 +291,10 @@ bool SystemInterface::parse_options(int argc, char **argv)
276291 size_t part_count = inputFiles_ .size ();
277292 blockOmissions_ .resize (part_count );
278293 blockInclusions_ .resize (part_count );
279- nsetOmissions_ .resize (part_count );
280- ssetOmissions_ .resize (part_count );
294+ nodesetOmissions_ .resize (part_count );
295+ sidesetOmissions_ .resize (part_count );
281296 assemblyOmissions_ .resize (part_count );
282- nsetMatch_ .resize (part_count );
297+ nodesetMatch_ .resize (part_count );
283298
284299 // Get options from environment variable also...
285300 char * options = getenv ("EJOIN_OPTIONS" );
@@ -349,10 +364,6 @@ bool SystemInterface::parse_options(int argc, char **argv)
349364 }
350365 }
351366
352- if (options_ .retrieve ("omit_part_assemblies" ) != nullptr ) {
353- createAssemblies_ = false;
354- }
355-
356367 {
357368 const char * temp = options_ .retrieve ("extract_blocks" );
358369 if (temp != nullptr ) {
@@ -363,7 +374,7 @@ bool SystemInterface::parse_options(int argc, char **argv)
363374 {
364375 const char * temp = options_ .retrieve ("match_nodeset_nodes" );
365376 if (temp != nullptr ) {
366- parse_omissions (temp , & nsetMatch_ , "nodelist" , true);
377+ parse_omissions (temp , & nodesetMatch_ , "nodelist" , true);
367378 }
368379 }
369380
@@ -374,7 +385,7 @@ bool SystemInterface::parse_options(int argc, char **argv)
374385 omitNodesets_ = true;
375386 }
376387 else {
377- parse_omissions (temp , & nsetOmissions_ , "nodelist" , false);
388+ parse_omissions (temp , & nodesetOmissions_ , "nodelist" , false);
378389 }
379390 }
380391 else {
@@ -389,7 +400,7 @@ bool SystemInterface::parse_options(int argc, char **argv)
389400 omitSidesets_ = true;
390401 }
391402 else {
392- parse_omissions (temp , & ssetOmissions_ , "surface" , false);
403+ parse_omissions (temp , & sidesetOmissions_ , "surface" , false);
393404 }
394405 }
395406 else {
@@ -421,24 +432,25 @@ bool SystemInterface::parse_options(int argc, char **argv)
421432 {
422433 const char * temp = options_ .retrieve ("nsetvar" );
423434 if (temp != nullptr ) {
424- parse_variable_names (temp , & nsetVarNames_ );
435+ parse_variable_names (temp , & nodesetVarNames_ );
425436 }
426437 }
427438
428439 {
429440 const char * temp = options_ .retrieve ("ssetvar" );
430441 if (temp != nullptr ) {
431- parse_variable_names (temp , & ssetVarNames_ );
442+ parse_variable_names (temp , & sidesetVarNames_ );
432443 }
433444 }
434445
446+ createAssemblies_ = options_ .retrieve ("omit_part_assemblies" ) != nullptr ;
435447 disableFieldRecognition_ = options_ .retrieve ("disable_field_recognition" ) != nullptr ;
436448 useNetcdf4_ = options_ .retrieve ("netcdf4" ) != nullptr ;
437449 ignoreElementIds_ = options_ .retrieve ("ignore_element_ids" ) != nullptr ;
438-
439- if ( options_ .retrieve ("64-bit " ) != nullptr ) {
440- ints64bit_ = true ;
441- }
450+ combineNodesets_ = options_ . retrieve ( "combine_nodesets" ) != nullptr ;
451+ combineSidesets_ = options_ .retrieve ("combine_sidesets " ) != nullptr ;
452+ combineElementBlocks_ = options_ . retrieve ( "combine_element_blocks" ) != nullptr ;
453+ ints64bit_ = options_ . retrieve ( "64-bit" ) != nullptr ;
442454
443455 zlib_ = (options_ .retrieve ("zlib" ) != nullptr );
444456 szip_ = (options_ .retrieve ("szip" ) != nullptr );
0 commit comments