accept LMP_SIZE_VECTOR as alias for LMP_SIZE_ROWS with local computes
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user