accept LMP_SIZE_VECTOR as alias for LMP_SIZE_ROWS with local computes

This commit is contained in:
Axel Kohlmeyer
2022-06-20 18:10:19 -04:00
parent 063fc47f64
commit 3828c857f7

View File

@ -1749,6 +1749,7 @@ void *lammps_extract_compute(void *handle, const char *id, int style, int type)
if (type == LMP_TYPE_SCALAR) return (void *) &compute->size_local_rows; /* for backward compatibility */
if (type == LMP_TYPE_VECTOR) return (void *) compute->vector_local;
if (type == LMP_TYPE_ARRAY) return (void *) compute->array_local;
if (type == LMP_SIZE_VECTOR) return (void *) &compute->size_local_rows; /* alias for LMP_SIZE_ROWS */
if (type == LMP_SIZE_ROWS) return (void *) &compute->size_local_rows;
if (type == LMP_SIZE_COLS) return (void *) &compute->size_local_cols;
}