improve error messages for easier debugging
This commit is contained in:
@ -584,7 +584,8 @@ void FixNVESpin::sectoring()
|
||||
}
|
||||
|
||||
if (rv == 0.0)
|
||||
error->all(FLERR,"Illegal sectoring operation");
|
||||
error->all(FLERR, Error::NOLASTLINE,
|
||||
"No suitable cutoff found for sectoring operation: rv = {}", rv);
|
||||
|
||||
double rax = rsx/rv;
|
||||
double ray = rsy/rv;
|
||||
@ -600,7 +601,8 @@ void FixNVESpin::sectoring()
|
||||
nsectors = sec[0]*sec[1]*sec[2];
|
||||
|
||||
if (sector_flag && (nsectors != 8))
|
||||
error->all(FLERR,"Illegal sectoring operation");
|
||||
error->all(FLERR, Error::NOLASTLINE,
|
||||
"Illegal sectoring operation resulting in {} sectors instead of 8", nsectors);
|
||||
|
||||
rsec[0] = rsx;
|
||||
rsec[1] = rsy;
|
||||
|
||||
Reference in New Issue
Block a user