From ffbe4ba7ddc2921aafe0f7b9c6c4e47423d22a2b Mon Sep 17 00:00:00 2001
From: David Landa Marban Hello worldtheory, pycopm can be not only used for grid coarsening, but also to apply grid refinements, submodels, and transformations.
Then, with the following commands first we substract a submodel around the isolated grid cell proyecting the outside pore volume on the boundaries, after
we apply a grid refinement on the cells in the middle x and y location, and finally we rotate the model 45 degrees.
pycopm -i HELLO_WORLD.DATA -v 'xypolygon [4,8.5] [4,16.5] [11.5,16.5] [11.5,8.5]' -p 1 -m all
+pycopm -i HELLO_WORLD.DATA -v 'xypolygon [4,8.5] [4,16.5] [11.5,16.5] [11.5,8.5] [4,8.5]' -p 1 -m all
pycopm -i HELLO_WORLD_PYCOPM.DATA -rx 0,0,0,2,0,0,0 -ry 0,0,0,2,0,0,0 -m all
pycopm -i HELLO_WORLD_PYCOPM_PYCOPM.DATA -d 'rotatexy 45' -m all
diff --git a/docs/text/examples.rst b/docs/text/examples.rst
index 9e2c8b6..84c19e2 100644
--- a/docs/text/examples.rst
+++ b/docs/text/examples.rst
@@ -116,7 +116,7 @@ we apply a grid refinement on the cells in the middle x and y location, and fina
.. code-block:: bash
- pycopm -i HELLO_WORLD.DATA -v 'xypolygon [4,8.5] [4,16.5] [11.5,16.5] [11.5,8.5]' -p 1 -m all
+ pycopm -i HELLO_WORLD.DATA -v 'xypolygon [4,8.5] [4,16.5] [11.5,16.5] [11.5,8.5] [4,8.5]' -p 1 -m all
pycopm -i HELLO_WORLD_PYCOPM.DATA -rx 0,0,0,2,0,0,0 -ry 0,0,0,2,0,0,0 -m all
pycopm -i HELLO_WORLD_PYCOPM_PYCOPM.DATA -d 'rotatexy 45' -m all
diff --git a/tests/scripts/docs_via_deck_hello_world.sh b/tests/scripts/docs_via_deck_hello_world.sh
index 35bfea7..c76cc4b 100644
--- a/tests/scripts/docs_via_deck_hello_world.sh
+++ b/tests/scripts/docs_via_deck_hello_world.sh
@@ -6,7 +6,7 @@ pycopm -i $WHR.DATA -o $OUT -c 5,5,1 -m all -l f1 -a max
plopm -i $OUT/HELLO_WORLD_PREP_PYCOPM_DRYRUN -v porv -o $OUT -s ,,1 -grid 'black,1e-2' -save hello_world_1_left
plopm -i $OUT/HELLO_WORLD_PYCOPM -v porv -o $OUT -s ,,1 -grid 'black,1e-2' -save hello_world_1_right
plopm -i "$OUT/HELLO_WORLD_PREP_PYCOPM_DRYRUN $OUT/HELLO_WORLD_PYCOPM" -v fipnum -s ,,1 -grid 'black,1e-2' -subfigs 1,2 -d 16,8 -delax 1 -suptitle 0 -cbsfax 0.1,0.95,0.8,0.02 -o $OUT -c cet_glasbey_hv -save hello_world_2 -t "Input model Coarsened model" -f 20
-pycopm -i $WHR.DATA -v 'xypolygon [4,8.5] [4,16.5] [11.5,16.5] [11.5,8.5]' -p 1 -m all -o $OUT -l f2
+pycopm -i $WHR.DATA -v 'xypolygon [4,8.5] [4,16.5] [11.5,16.5] [11.5,8.5] [4,8.5]' -p 1 -m all -o $OUT -l f2
pycopm -i $OUT/HELLO_WORLD_PYCOPM.DATA -rx 0,0,0,2,0,0,0 -ry 0,0,0,2,0,0,0 -m all -o $OUT -l f3
pycopm -i $OUT/HELLO_WORLD_PYCOPM_PYCOPM.DATA -d 'rotatexy 45' -m all -o $OUT -l f4
plopm -i $OUT/HELLO_WORLD_PYCOPM -v porv -o $OUT -s ,,1 -grid 'black,1e-2' -save submodel -save hello_world_3_submodel