Validity and compatibility of a cry object of class 'cryst_symm'
check_cryst_symm_validity.Rd
An object of class 'cryst_symm' is a named list of length 4. The first field is a character string, the second field is a \(3\times 3\) array and the third and fourth field are \(3 \times 1\) arrays.
Arguments
- x
Object of class 'cryst_symm'.
- message
A logical variable. If TRUE, the function prints a message on the errors, if any (default is FALSE, i.e. no message printed).
Examples
# Create an object of class 'cryst_symm'
x <- cryst_symm(15)
# Check its validity
check_cryst_symm_validity(x)
#> [1] TRUE
# Now change a field
x$PG[[1]] <- matrix(rep(0,times=9),ncol=3)
# Check validity again
check_cryst_symm_validity(x,TRUE)
#> One or more matrices of the 'PG' part tof his object of class 'cryst_symm' are incorrect.
#> [1] FALSE