/usr/lib/openturns-1.5/wrappers/wrapper.xml is in openturns-examples 1.5-7build2.
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 | <?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE wrapper SYSTEM "wrapper.dtd">
<!-- author : dutka -->
<!-- date : 2007-08-01 16:47:51 +0200 (Wed, 01 Aug 2007) -->
<wrapper>
<library>
<!-- The path of the shared object -->
<path>testwrapper_3.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="F" type="in">
<comment>May the force be with you</comment>
<unit>Newton</unit>
<regexp>F=.*</regexp>
<format>F=%10.5g</format>
</variable>
<!-- The definition of a variable -->
<variable id="L" type="in">
<comment>How long are you ?</comment>
<unit>Meter</unit>
<regexp>L=[0-9]+\.[0-9]* *m</regexp>
<format>L=%8.4f</format>
</variable>
</variable-list>
<!-- The function that we try to execute through the wrapper -->
<function provided="yes">fonction1</function>
<!-- The gradient of the function is defined into the wrapper -->
<gradient provided="yes">gradient1</gradient>
<!-- But the hessian is NOT defined, so it does NOT appear in this file -->
<hessian provided="no" />
</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>./fort.5</path>
</file>
<!-- Another input file -->
<file id="file-2" type="in">
<name>StdTruc</name>
<path>/tmp/fort.55</path>
</file>
<!-- An output file -->
<file id="file-3" type="out">
<name>StdOut</name>
<path>/tmp/out/fort.6</path>
</file>
</data>
<wrap-mode type="static-link">
<in-data-transfer mode="arguments" />
<out-data-transfer mode="arguments" />
</wrap-mode>
<command>
</command>
</external-code>
</wrapper>
|