<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello Michael,<br>
    <br>
    <div class="moz-cite-prefix">On 01/29/2015 05:08 PM, CORTIS M.
      wrote:<br>
    </div>
    <blockquote
      cite="mid:4E4693B1-FACB-4E8B-82E9-CAE7DA57579A@durham.ac.uk"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <base href="x-msg://705/">
      <div apple-content-edited="true">
        <div style="color: rgb(0, 0, 0); font-family: Menlo; font-size:
          medium; font-style: normal; font-variant: normal; font-weight:
          normal; letter-spacing: normal; line-height: normal; orphans:
          2; text-align: -webkit-auto; text-indent: 0px; text-transform:
          none; white-space: normal; widows: 2; word-spacing: 0px;
          -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
          0px; word-wrap: break-word; -webkit-nbsp-mode: space;
          -webkit-line-break: after-white-space; ">
          <div style="color: rgb(0, 0, 0); font-family: Menlo;
            font-size: medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: 2; text-align: -webkit-auto; text-indent:
            0px; text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word;
            -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space; ">
            Hi Iulian,</div>
          <div style="color: rgb(0, 0, 0); font-family: Menlo;
            font-size: medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: 2; text-align: -webkit-auto; text-indent:
            0px; text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word;
            -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space; ">
            <br>
          </div>
          <div style="color: rgb(0, 0, 0); font-family: Menlo;
            font-size: medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: 2; text-align: -webkit-auto; text-indent:
            0px; text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word;
            -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space; ">
            Yes I am trying to create an element made from single
            vertex.</div>
          <div style="color: rgb(0, 0, 0); font-family: Menlo;
            font-size: medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: 2; text-align: -webkit-auto; text-indent:
            0px; text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word;
            -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space; ">
            I want to used these for Material Point Method.</div>
          <div style="color: rgb(0, 0, 0); font-family: Menlo;
            font-size: medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: 2; text-align: -webkit-auto; text-indent:
            0px; text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word;
            -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space; ">
            <br>
          </div>
          <div style="color: rgb(0, 0, 0); font-family: Menlo;
            font-size: medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: 2; text-align: -webkit-auto; text-indent:
            0px; text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word;
            -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space; ">
            So there is a way of creating the vertices, but not adding
            connectivity to themselves only?</div>
          <div style="color: rgb(0, 0, 0); font-family: Menlo;
            font-size: medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: 2; text-align: -webkit-auto; text-indent:
            0px; text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word;
            -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space; ">
            Or may be another way round?</div>
        </div>
      </div>
    </blockquote>
    <br>
    Perhaps, I'm not fully understanding your questions, but it is
    certainly possible to create vertices in MOAB and then use them
    directly in your analysis.  There is no need to create an element
    if, in fact, all you need are the vertices.  Each vertex can be
    tagged with data in the same way that an element can be.<br>
    <br>
    I hope that is helpful,<br>
    Paul<br>
    <br>
    <blockquote
      cite="mid:4E4693B1-FACB-4E8B-82E9-CAE7DA57579A@durham.ac.uk"
      type="cite">
      <div apple-content-edited="true">
        <div style="color: rgb(0, 0, 0); font-family: Menlo; font-size:
          medium; font-style: normal; font-variant: normal; font-weight:
          normal; letter-spacing: normal; line-height: normal; orphans:
          2; text-align: -webkit-auto; text-indent: 0px; text-transform:
          none; white-space: normal; widows: 2; word-spacing: 0px;
          -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
          0px; word-wrap: break-word; -webkit-nbsp-mode: space;
          -webkit-line-break: after-white-space; ">
          <div style="color: rgb(0, 0, 0); font-family: Menlo;
            font-size: medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: 2; text-align: -webkit-auto; text-indent:
            0px; text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word;
            -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space; ">
            If not, don't worry about. Will create a vtk writer to do
            this and hopefully moab can use the vertices.</div>
          <div style="color: rgb(0, 0, 0); font-family: Menlo;
            font-size: medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: 2; text-align: -webkit-auto; text-indent:
            0px; text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word;
            -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space; ">
            <br>
          </div>
          <div style="color: rgb(0, 0, 0); font-family: Menlo;
            font-size: medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: 2; text-align: -webkit-auto; text-indent:
            0px; text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word;
            -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space; ">
            Any assistance is really appreciated.</div>
          <div style="color: rgb(0, 0, 0); font-family: Menlo;
            font-size: medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: 2; text-align: -webkit-auto; text-indent:
            0px; text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word;
            -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space; ">
            <br>
          </div>
          <div style="color: rgb(0, 0, 0); font-family: Menlo;
            font-size: medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: 2; text-align: -webkit-auto; text-indent:
            0px; text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word;
            -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space; ">
            Kind regards</div>
          <div style="color: rgb(0, 0, 0); font-family: Menlo;
            font-size: medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: 2; text-align: -webkit-auto; text-indent:
            0px; text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word;
            -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space; ">
            <br>
          </div>
          <div style="color: rgb(0, 0, 0); font-family: Menlo;
            font-size: medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: 2; text-align: -webkit-auto; text-indent:
            0px; text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word;
            -webkit-nbsp-mode: space; -webkit-line-break:
            after-white-space; ">
            Michael</div>
          <br class="Apple-interchange-newline">
        </div>
        <br class="Apple-interchange-newline">
        <br class="Apple-interchange-newline">
      </div>
      <br>
      <div>
        <div>On 29 Jan 2015, at 17:24, "Grindeanu, Iulian R." <<a
            moz-do-not-send="true" href="mailto:iulian@mcs.anl.gov">iulian@mcs.anl.gov</a>>
          wrote:</div>
        <br class="Apple-interchange-newline">
        <blockquote type="cite">
          <div ocsi="0" fpstyle="1" style="font-family: Menlo;
            font-size: medium; font-style: normal; font-variant: normal;
            font-weight: normal; letter-spacing: normal; line-height:
            normal; orphans: 2; text-align: -webkit-auto; text-indent:
            0px; text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-text-size-adjust: auto;
            -webkit-text-stroke-width: 0px; word-wrap: break-word; ">
            <div style="direction: ltr; font-family: Tahoma; font-size:
              10pt; ">Hello,<br>
              Moab does not have elements with a single vertex. Is this
              what you are trying to do?<span
                class="Apple-converted-space"> </span><br>
              A vertex (node) is represented with an entity handle of
              type MBVERTEX, and you can get coordinates for it<br>
              <br>
              I am not sure what are you trying to do.<br>
              Best Regards,<br>
              Iulian<br>
              <br>
              <div style="font-family: 'Times New Roman'; font-size:
                16px; ">
                <hr tabindex="-1">
                <div id="divRpF966284" style="direction: ltr; "><font
                    face="Tahoma" size="2"><b>From:</b><span
                      class="Apple-converted-space"> </span><a
                      moz-do-not-send="true"
                      href="mailto:moab-dev-bounces@mcs.anl.gov">moab-dev-bounces@mcs.anl.gov</a>
                    [<a moz-do-not-send="true"
                      href="mailto:moab-dev-bounces@mcs.anl.gov">moab-dev-bounces@mcs.anl.gov</a>]
                    on behalf of CORTIS M. [<a moz-do-not-send="true"
                      href="mailto:michael.cortis@durham.ac.uk">michael.cortis@durham.ac.uk</a>]<br>
                    <b>Sent:</b><span class="Apple-converted-space"> </span>Thursday,
                    January 29, 2015 10:18 AM<br>
                    <b>To:</b><span class="Apple-converted-space"> </span><a
                      moz-do-not-send="true"
                      href="mailto:moab-dev@mcs.anl.gov">moab-dev@mcs.anl.gov</a><br>
                    <b>Cc:</b><span class="Apple-converted-space"> </span>Tautges,
                    Timothy J.<br>
                    <b>Subject:</b><span class="Apple-converted-space"> </span>Re:
                    [MOAB-dev] Setting connectivity for single vertex<br>
                  </font><br>
                </div>
                <div>
                  <div>
                    <div style="font-family: Menlo; font-size: medium;
                      font-style: normal; font-variant: normal;
                      font-weight: normal; letter-spacing: normal;
                      line-height: normal; orphans: 2; text-indent: 0px;
                      text-transform: none; white-space: normal; widows:
                      2; word-spacing: 0px; word-wrap: break-word; ">
                      <div style="font-family: Menlo; font-size: medium;
                        font-style: normal; font-variant: normal;
                        font-weight: normal; letter-spacing: normal;
                        line-height: normal; orphans: 2; text-indent:
                        0px; text-transform: none; white-space: normal;
                        widows: 2; word-spacing: 0px; word-wrap:
                        break-word; ">
                        Thanks Tim,</div>
                      <div style="font-family: Menlo; font-size: medium;
                        font-style: normal; font-variant: normal;
                        font-weight: normal; letter-spacing: normal;
                        line-height: normal; orphans: 2; text-indent:
                        0px; text-transform: none; white-space: normal;
                        widows: 2; word-spacing: 0px; word-wrap:
                        break-word; ">
                        <br>
                      </div>
                      <div style="font-family: Menlo; font-size: medium;
                        font-style: normal; font-variant: normal;
                        font-weight: normal; letter-spacing: normal;
                        line-height: normal; orphans: 2; text-indent:
                        0px; text-transform: none; white-space: normal;
                        widows: 2; word-spacing: 0px; word-wrap:
                        break-word; ">
                        I am still having a problem, may be the guys at
                        Argonne can help with this.</div>
                      <div style="font-family: Menlo; font-size: medium;
                        font-style: normal; font-variant: normal;
                        font-weight: normal; letter-spacing: normal;
                        line-height: normal; orphans: 2; text-indent:
                        0px; text-transform: none; white-space: normal;
                        widows: 2; word-spacing: 0px; word-wrap:
                        break-word; ">
                        <br>
                      </div>
                      <div style="font-family: Menlo; font-size: medium;
                        font-style: normal; font-variant: normal;
                        font-weight: normal; letter-spacing: normal;
                        line-height: normal; orphans: 2; text-indent:
                        0px; text-transform: none; white-space: normal;
                        widows: 2; word-spacing: 0px; word-wrap:
                        break-word; ">
                        I've tried a simpler one and trying to crete the
                        vertex from point.</div>
                      <div style="font-family: Menlo; font-size: medium;
                        font-style: normal; font-variant: normal;
                        font-weight: normal; letter-spacing: normal;
                        line-height: normal; orphans: 2; text-indent:
                        0px; text-transform: none; white-space: normal;
                        widows: 2; word-spacing: 0px; word-wrap:
                        break-word; ">
                        <br>
                      </div>
                      <div style="font-family: Menlo; font-size: medium;
                        font-style: normal; font-variant: normal;
                        font-weight: normal; letter-spacing: normal;
                        line-height: normal; orphans: 2; text-indent:
                        0px; text-transform: none; white-space: normal;
                        widows: 2; word-spacing: 0px; word-wrap:
                        break-word; ">
                        <div style="margin: 0px; font-size: 12px; ">  <span
                            style="font-size: 11px; ">double</span><span
                            class="Apple-converted-space"> </span>points[<span
                            style="font-size: 11px; ">9</span>]={<span
                            style="font-size: 11px; ">0.5</span>,<span
                            style="font-size: 11px; ">0</span>,<span
                            style="font-size: 11px; ">0</span>};</div>
                        <div style="margin: 0px; font-size: 12px; "> 
                          EntityHandle vertex;</div>
                        <div style="margin: 0px; font-size: 12px; "> 
                          rval=moab2.create_vertex(points,vertex);CHKERR_PETSC(rval);</div>
                        <div style="margin: 0px; font-size: 12px; "> 
                          EntityHandle dummy;</div>
                        <div style="margin: 0px; font-size: 12px; "> 
                          rval =
                          moab2.create_element(MBVERTEX,&vertex,<span
                            style="font-size: 11px; ">1</span>,dummy);
                          CHKERR_PETSC(rval);</div>
                      </div>
                      <br class="Apple-interchange-newline">
                    </div>
                    But I am getting Error code 2, MB_TYPE_OUT_OF_RANGE
                    !</div>
                  <div>Is it possible to use MBVERTEX here?</div>
                  <div><br>
                  </div>
                  <div>Thanks,</div>
                  <div><br>
                  </div>
                  <div>Michael</div>
                  <br>
                  <div>
                    <div>On 29 Jan 2015, at 15:04, Tim Tautges <<a
                        moz-do-not-send="true"
                        href="mailto:tautges@mcs.anl.gov"
                        target="_blank">tautges@mcs.anl.gov</a>>
                      wrote:</div>
                    <br class="Apple-interchange-newline">
                    <blockquote type="cite">[cc'ng moab-dev list, since
                      I've left Argonne.]<br>
                      <br>
                      dummy is 0, which is an invalid handle, but should
                      be the handle(s) of the entities whose
                      connectivity you're setting; I suspect what you
                      want there is *vertices.begin().  And you can't
                      set connectivity until you make an element, so you
                      need to call create_element, probably with the
                      number of verts per element as 1 and the
                      connectivity just the single vertex defining the
                      point element.<br>
                      <br>
                      - tim<br>
                      <br>
                      On 01/29/2015 03:34 AM, CORTIS M. wrote:<br>
                      <blockquote type="cite">Dear Tim,<br>
                        <br>
                        I've got the following problem:<br>
                        <br>
                        I want to create vertex entities, ie create the
                        points and vertex entities using those points.<br>
                        So I've create a set of vertices from an array
                        of coordinates.<br>
                        And If you try to set the connectivity for every
                        point you get Error code 4
                        (MB_ENTITY_NOT_FOUND).<br>
                        <br>
                        This is my code:<br>
                        <br>
                        double points[6]={1,0,0, 0,1,0, 0,0,1};<br>
                        Range vertices;<br>
                        rval = moab.create_vertices(points,2,vertices);
                        CHKERR_PETSC(rval);<br>
                        EntityHandle dummy=0;<br>
                        rval =
                        moab.set_connectivity(dummy,vertexlist,1);
                        CHKERR_PETSC(rval); //Error code 4<br>
                        <br>
                        Any suggestions how to overcome this problem.<br>
                        <br>
                        Kind regards,<br>
                        <br>
                        Michael</blockquote>
                    </blockquote>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --
Paul Wilson ~ UW-Madison ~ 608-263-0807 ~ cal: <a class="moz-txt-link-freetext" href="http://bit.ly/pphw-cal">http://bit.ly/pphw-cal</a>
Professor, Engineering Physics. ~ <a class="moz-txt-link-freetext" href="http://cnerg.engr.wisc.edu">http://cnerg.engr.wisc.edu</a>
Faculty Director, Advanced Computing Infrastructure ~ <a class="moz-txt-link-freetext" href="http://aci.wisc.edu">http://aci.wisc.edu</a></pre>
  </body>
</html>