<?xml version="1.0" encoding="UTF-8"?>
<refentry version="5.0-subset Scilab" xml:id="gf_mesh_im_set" xml:lang="en"
          xmlns="http://docbook.org/ns/docbook"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          xmlns:xi="http://www.w3.org/2001/XInclude"
          xmlns:svg="http://www.w3.org/2000/svg"
          xmlns:mml="http://www.w3.org/1998/Math/MathML"
          xmlns:html="http://www.w3.org/1999/xhtml"
          xmlns:db="http://docbook.org/ns/docbook">
  <refnamediv>
    <refname>gf_mesh_im_set</refname>
    <refpurpose>  General function for modifying mesh_im objects
  </refpurpose>
  </refnamediv>

  <refsynopsisdiv>
    <title>Calling Sequence</title>

    <synopsis>gf_mesh_im_set(mesh_im MI, 'integ',{integ im|int im_degree}[, ivec CVids])</synopsis>
    <synopsis>gf_mesh_im_set(mesh_im MI, 'adapt')</synopsis>
  </refsynopsisdiv>

  <refsection>
    <title>Description</title>
    <para>  General function for modifying mesh_im objects
  </para>
  </refsection>

  <refsection>
    <title>Command list</title>

    <itemizedlist>
    <listitem>
    <para><literal>gf_mesh_im_set(mesh_im MI, 'integ',{integ im|int im_degree}[, ivec CVids])</literal></para>

    <para>       Set the integration method.

    Assign an integration method to all convexes whose #ids are
    listed in <literal>CVids</literal>. If <literal>CVids</literal> is not given, the integration is
    assigned to all convexes. It is possible to assign a specific
    integration method with an integration method handle <literal>im</literal> obtained
    via gf_integ('IM_SOMETHING'), or to let getfem choose a suitable
    integration method with <literal>im_degree</literal> (choosen such that polynomials
    of <latex style="text"><![CDATA[\text{degree} \leq \text{im\_degree}]]></latex> are exactly integrated.
    If <literal>im_degree=-1</literal>, then the dummy integration method IM_NONE will 
    be used.)
    </para>
    </listitem>

    <listitem>
    <para><literal>gf_mesh_im_set(mesh_im MI, 'adapt')</literal></para>

    <para>       For a mesh_im levelset object only. Adapt the integration methods to a
    change of the levelset function.
    </para>
    </listitem>

    </itemizedlist>
  </refsection>

  <refsection>
    <title>See Also</title>
    <simplelist type="inline">
      <member><link linkend="getfem_types">getfem types</link></member>
    </simplelist>
  </refsection>

  <refsection>
    <title>Authors</title>
    <para>Y. Collette</para>
  </refsection>

</refentry>
