<div dir="ltr">Hi Petsc Users<br><br>I am trying to use DMAddField in a Fortran code. I had some questions on casting/passing NULL. I follow how to pass NULL for standard types (INT, CHAR, etc). <br><br>Is there a method/best practice for passing NULL for Petsc type arguments? (In this case DMAddLabel I'd want to pass NULL to a DMLabel Parameter not an intrinsic type)<br><br>For the 2nd question, In some cases in C we would cast a more specific object to Petsc Object <br>DMAddField(dm, NULL, (PetscObject)fvm); (where fvm is a PetscFVM type)<br>Is there a method or practice to do the same in Fortran.<br><br>Thanks<br>Nicholas<br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-family:arial;font-size:small"><font color="#000000">Nicholas Arnold-Medabalimi<br><br></font><span style="font-family:sans-serif;font-size:14px">Ph.D. Candidate</span><font color="#000000"><br>Computational Aeroscience Lab<br>University of Michigan</font></div></div></div></div></div></div>