Option compatibility and validation#
pycopm validates input formats and rejects incompatible workflows before processing the model.
The implementation validates the following combinations before processing a deck:
Use either uniform
-cor directional-x,-y, and-zcoarsening.Use either uniform
-gor directional-rx,-ry, and-rzrefinement.Coarsening and refinement are mutually exclusive.
-vcannot be combined with-d, refinement, or-q 1.-dcannot be combined with refinement.Non-default
-aand-n, and any-s,-t,-j, or-dual, require coarsening.-p 1requires coarsening or submodel extraction.-p 2,-p 3, and-p 4require submodel extraction.Multiple aggregation methods require range-based
-zcoarsening and one method per z group.An
xypolygonmust have at least four points and repeat its first point at the end.Scale factors cannot be zero, jump thresholds must be positive, and requested
i,j,kindices must be positive.