@@ -45,13 +45,13 @@ MetatomicSystemAdaptor::~MetatomicSystemAdaptor() {}
4545
4646void MetatomicSystemAdaptor::add_nl_request (double cutoff, metatomic_torch::NeighborListOptions request) {
4747 if (cutoff > options_.interaction_range ) {
48- error->all (FLERR,
48+ error->one (FLERR,
4949 " Invalid metatomic model: one of the requested neighbor lists "
5050 " has a cutoff ({}) larger than the model interaction range ({})" ,
5151 cutoff, options_.interaction_range
5252 );
5353 } else if (cutoff < 0 || !std::isfinite (cutoff)) {
54- error->all (FLERR,
54+ error->one (FLERR,
5555 " model requested an invalid cutoff for neighbors list: {} "
5656 " (cutoff in model units is {})" ,
5757 cutoff, request->cutoff ()
@@ -278,7 +278,7 @@ void MetatomicSystemAdaptor::setup_neighbors_remap(metatomic_torch::System& syst
278278 });
279279 } else {
280280 // should be unreachable
281- error->all (FLERR, " invalid dtype, this is a bug" );
281+ error->one (FLERR, " invalid dtype, this is a bug" );
282282 }
283283 }
284284 }
@@ -317,7 +317,7 @@ void MetatomicSystemAdaptor::setup_neighbors_remap(metatomic_torch::System& syst
317317 );
318318 } else {
319319 // should be unreachable
320- error->all (FLERR, " invalid dtype, this is a bug" );
320+ error->one (FLERR, " invalid dtype, this is a bug" );
321321 }
322322
323323 {
@@ -408,7 +408,7 @@ void MetatomicSystemAdaptor::setup_neighbors_no_remap(metatomic_torch::System& s
408408 });
409409 } else {
410410 // should be unreachable
411- error->all (FLERR, " invalid dtype, this is a bug" );
411+ error->one (FLERR, " invalid dtype, this is a bug" );
412412 }
413413 }
414414 }
@@ -446,7 +446,7 @@ void MetatomicSystemAdaptor::setup_neighbors_no_remap(metatomic_torch::System& s
446446 );
447447 } else {
448448 // should be unreachable
449- error->all (FLERR, " invalid dtype, this is a bug" );
449+ error->one (FLERR, " invalid dtype, this is a bug" );
450450 }
451451
452452 {
@@ -526,7 +526,7 @@ metatomic_torch::System MetatomicSystemAdaptor::system_from_lmp(
526526 // While metatomic models can support mixed PBC settings, we currently
527527 // assume that the system is fully periodic and we throw an error otherwise
528528 if (!domain->xperiodic || !domain->yperiodic || !domain->zperiodic ) {
529- error->all (FLERR, " pair_style metatomic requires a fully periodic system" );
529+ error->one (FLERR, " pair_style metatomic requires a fully periodic system" );
530530 }
531531 auto pbc = torch::tensor (
532532 {domain->xperiodic , domain->yperiodic , domain->zperiodic },
0 commit comments