GeoscienceAustralia / anuga_core

AnuGA for the simulation of the shallow water equation
https://anuga.anu.edu.au
Other
190 stars 93 forks source link

How to change the compilation of c-files to pyd-files #280

Open dili5 opened 1 week ago

dili5 commented 1 week ago

Hello Professor: For an experiment I tried to make changes to the c file, do I need to recompile him to a pyd file every time I change the c file? Can you please tell me how this step is achieved.

stoiver commented 1 week ago

@dili5 If you change a C or cython pyx file then yes you will need to recompile.

Perhaps the easiest is to run the pip install -e . command again from the anuga_core directory.

Somewhat quicker is to run the setup.py file from the directory in which you changed the code. This assumes you have installed anuga in place or editable (-e option on pip)

dili5 commented 6 days ago

Thanks, I am now trying to introduce Physical Information Neural Networks (PINN) into anuga, with constant hiccups in between, and I am very grateful for the professor's help.