[CIG-SHORT] How does Pylith code construct?

Matthew Knepley knepley at rice.edu
Mon Jan 14 23:13:23 PST 2019


On Mon, Jan 14, 2019 at 7:00 PM tu xiang <tuxiang2016 at outlook.com> wrote:

> Dear Charles
> I plan to add some code to Pylith. I read some of the code, but I am
> confused. Because I cannot find the main function. Do you know where is the
> main function?
>

PyLith is a Python application. Therefore the main() in the Python
interpreter.


> How does Pylith construct? Do you know how to debug the code?
>

You can use the Python debugger, unless you want to debug C. Then I just
use gdb, or run with --petsc.start_in_debugger


> Are there any manual to guide me to read and add code?
>

We have some example for adding structured modules, like Materials.

  Thanks,

    Matt


> Best regards,
> Tu
> _________________________________________________
> CIG-SHORT has MOVED to our new forum.  Please
> head to https://community.geodynamics.org.
>
> This mailing list will be disabled at the end of
> January 2019.
> _________________________________________________
> CIG-SHORT mailing list
> CIG-SHORT at geodynamics.org
> http://lists.geodynamics.org/cgi-bin/mailman/listinfo/cig-short
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geodynamics.org/pipermail/cig-short/attachments/20190115/4a4560d6/attachment.html>


More information about the CIG-SHORT mailing list