<div dir="ltr">> with options="PARALLEL=WRITE_PART;".<br><div><br></div><div>Just what I needed. Is this documented anywhere at all?</div><div><br></div><div>> <span style="line-height:1.5">write_mesh only </span><span style="line-height:1.5">works in serial.</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">Perhaps this could be communicated even more clearly by renaming the function to something along the lines of `write_serial`. Alternatively, one could think about removing that function altogether. `write_file("2.h5m")` does the same as `write_mesh("2.h5m")`.</span></div><div><span style="line-height:1.5"><br></span></div><div>In addition, I found that setting the `file_type` in [1] doesn't do anything. At least, illegal values aren't intercepted.</div><div><br></div><div>Cheers,</div><div>Nico</div><div><br></div><div>[1] <a href="http://www.mcs.anl.gov/~fathom/moab-docs/html/classmoab_1_1Interface.html#a96c55cc351c6d44b88330a2bf692996b" target="_blank" style="line-height:1.5">http://www.mcs.anl.gov/~fathom/moab-docs/html/classmoab_1_1Interface.html#a96c55cc351c6d44b88330a2bf692996b</a></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Jan 2, 2016 at 7:23 PM Vijay S. Mahadevan <<a href="mailto:vijay.m@gmail.com">vijay.m@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Nico,<br>
<br>
Yes write_mesh is implemented to work only in serial. It internally<br>
just calls write_file but with NULL options [1]. I believe write_mesh<br>
exists typically for debug purposes where we can dump the partial mesh<br>
from each process and analyze it. I don't see why this should be<br>
restricted this way and can certainly change that. Alternately, you<br>
can and should directly call write_file (which can store tags and<br>
other set data too) with options="PARALLEL=WRITE_PART;".<br>
<br>
Iulian, we should update the documentation to say that write_mesh only<br>
works in serial. Or optionally allow user to specify options so that<br>
both serial/parallel writes can be enabled. Also, the documentation<br>
for load_file and write_file should describe what typical options can<br>
be used to read/write in parallel.<br>
<br>
Vijay<br>
<br>
[1] <a href="http://www.mcs.anl.gov/~fathom/moab-docs/html/classmoab_1_1Core.html#afa9715e0c6aef68eb7bb84407cf15a5e" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/~fathom/moab-docs/html/classmoab_1_1Core.html#afa9715e0c6aef68eb7bb84407cf15a5e</a><br>
<br>
On Sat, Jan 2, 2016 at 8:42 AM, Nico Schlömer <<a href="mailto:nico.schloemer@gmail.com" target="_blank">nico.schloemer@gmail.com</a>> wrote:<br>
> Hi everyone,<br>
><br>
> I'm trying to write a mesh in parallel with write_mesh [1]. Unfortunately,<br>
> it appears that only one process actually writes the file (or the other<br>
> portions are overridden). I see there is also write_file [2]; haven't tried<br>
> it yet.<br>
><br>
> Anything I should know?<br>
><br>
> Cheers,<br>
> Nico<br>
><br>
><br>
> [1]<br>
> <a href="http://www.mcs.anl.gov/~fathom/moab-docs/html/classmoab_1_1Interface.html#a4d4d0fa72b9578bfd6f2ec8410fe207c" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/~fathom/moab-docs/html/classmoab_1_1Interface.html#a4d4d0fa72b9578bfd6f2ec8410fe207c</a><br>
> [2]<br>
> <a href="http://www.mcs.anl.gov/~fathom/moab-docs/html/classmoab_1_1Interface.html#a96c55cc351c6d44b88330a2bf692996b" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/~fathom/moab-docs/html/classmoab_1_1Interface.html#a96c55cc351c6d44b88330a2bf692996b</a><br>
</blockquote></div>