On Fri, Sep 16, 2011 at 7:17 AM, Gianluca Meneghello <span dir="ltr"><<a href="mailto:gianmail@gmail.com">gianmail@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I would like to ask you 2 unrelated questions.<br>
<br>
#_1 The first one concerns PETSc viewer. In my code I'm writing<br>
outputs with PETSC_VIEWER_ASCII_VTK, more precisely<br>
<br>
PetscViewer viewer;<br>
PetscViewerASCIIOpen(PETSC_COMM_SELF,filename.c_str(),&viewer);<br>
PetscViewerSetFormat(viewer,PETSC_VIEWER_ASCII_VTK);<br>
DMView(dau,viewer);<br>
VecView(foou,viewer);<br>
VecView(foop,viewer);<br>
PetscViewerDestroy(&viewer);<br>
<br>
where foou and foop (velocity and pressure respectively) are vectors<br>
extracted from the vector containing the full solution of my problem.<br>
The VTK so obtained nicely contains a vector field — from foou — and a<br>
scalar field — foop — and can be read by Paraview.<br>
<br>
Nonetheless, I guess writing (and reading from Paraview) ASCII files<br>
is not the best choice. Are there better possibilities in PETSc? Is<br>
there a PETSC_VIEWER_BINARY_VTK or equivalent?<br></blockquote><div><br></div><div>We are working on it but it is not yet ready.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
#_2 The second is about the nohup command. If I run my code with<br>
"nohup ./main <opts> &" and then exit the console, the program dies as<br>
if there was no nohup command in front of it. The same is true for<br>
some examples I've tested from the PETSc library. I guess this is<br>
related to the machine I'm using more than to the library but... has<br>
anyone of you already experienced a similar issue? Any advice is<br>
welcome and please let me know if you need any information that can<br>
help.<br></blockquote><div><br></div><div>Dos your program die from a HUP signal or another one?</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks<br>
<br>
Gianluca<br>
<font color="#888888"><br>
--<br>
"[Je pense que] l'homme est un monde qui vaut des fois les mondes et<br>
que les plus ardentes ambitions sont celles qui ont eu l'orgueil de<br>
l'Anonymat" -- Non omnibus, sed mihi et tibi<br>
Amedeo Modigliani<br>
</font></blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>