summaryrefslogtreecommitdiff
path: root/Skin++/data/grep.c2m
diff options
context:
space:
mode:
authorstainer_t <thomas.stainer@oecd-nea.org>2025-09-08 13:48:49 +0200
committerstainer_t <thomas.stainer@oecd-nea.org>2025-09-08 13:48:49 +0200
commit7dfcc480ba1e19bd3232349fc733caef94034292 (patch)
tree03ee104eb8846d5cc1a981d267687a729185d3f3 /Skin++/data/grep.c2m
Initial commit from Polytechnique Montreal
Diffstat (limited to 'Skin++/data/grep.c2m')
-rwxr-xr-xSkin++/data/grep.c2m15
1 files changed, 15 insertions, 0 deletions
diff --git a/Skin++/data/grep.c2m b/Skin++/data/grep.c2m
new file mode 100755
index 0000000..f79ad30
--- /dev/null
+++ b/Skin++/data/grep.c2m
@@ -0,0 +1,15 @@
+ !
+ ! Grep a value in the state-vector of a LCM object
+ !
+ ! input to "grep": *lcm object*
+ ! output from "grep": *nb_mix*
+ !
+ PARAMETER GEOM ::
+ ::: LINKED_LIST GEOM ; ;
+ MODULE GREP: END: ;
+ INTEGER nb_mix ;
+
+ GREP: GEOM :: GETVAL 'STATE-VECTOR' 7 >>nb_mix<< ;
+ :: <<nb_mix>> ;
+ END: ;
+ QUIT .