/usr/lib/openturns/wrappers/poutre_external.xml is in openturns-wrapper 0.15-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | <?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE wrapper SYSTEM "wrapper.dtd">
<!-- LastChangedBy : $LastChangedBy: dutka $ -->
<!-- LastChangeddate : $LastChangedDate: 2008-09-22 11:34:11 +0200 (Mon, 22 Sep 2008) $ -->
<wrapper>
<library>
<!-- The path of the shared object -->
<path>poutre.so</path>
<!-- This section describes all exchanges data between the wrapper and the platform -->
<description>
<!-- Those variables are substituted in the files above -->
<!-- The order of variables is the order of the arguments of the function -->
<variable-list>
<!-- The definition of a variable -->
<variable id="E" type="in">
<comment>meanYoungModulus</comment>
<unit>Pascal</unit>
<regexp>E=.*</regexp>
<format>E=%G</format>
</variable>
<!-- The definition of a variable -->
<variable id="F" type="in">
<comment>LoadForce</comment>
<unit>Newton</unit>
<regexp>F=.*</regexp>
<format>F=%G</format>
</variable>
<!-- The definition of a variable -->
<variable id="L" type="in">
<comment>BeamLength</comment>
<unit>Meter</unit>
<regexp>L=.*</regexp>
<format>L=%G</format>
</variable>
<!-- The definition of a variable -->
<variable id="I" type="in">
<comment>SectionInertia</comment>
<unit>Meter^4</unit>
<regexp>I=.*</regexp>
<format>I=%G</format>
</variable>
<!-- The definition of a variable -->
<variable id="d" type="out">
<comment>Deviation</comment>
<unit>Meter</unit>
<regexp>d=(.*)</regexp>
<format>\1</format>
</variable>
</variable-list>
<!-- The function that we try to execute through the wrapper -->
<function provided="yes">compute_deviation</function>
<!-- the gradient is defined -->
<gradient provided="yes">compute_deviation</gradient>
<!-- the hessian is defined -->
<hessian provided="yes">compute_deviation</hessian>
</description>
</library>
<external-code>
<!-- Those data are external to the platform (input files, etc.)-->
<data>
<!-- An input file -->
<file id="file-1" type="in">
<name>StdIn</name>
<path>poutre_external_infile1</path>
<subst>E,F</subst>
</file>
<!-- An input file -->
<file id="file-2" type="in">
<name>StdIn</name>
<path>poutre_external_infile2</path>
<subst>L,I</subst>
</file>
<!-- An output file -->
<file id="file-3" type="out">
<name>StdOut</name>
<path>poutre_external_outfile</path>
<subst>d</subst>
</file>
</data>
<wrap-mode type="fork" state="shared">
<in-data-transfer mode="arguments" />
<out-data-transfer mode="arguments" />
</wrap-mode>
<command>poutre_files.sh</command>
</external-code>
</wrapper>
|