Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dili5 opened this issue Sep 12, 2024 · 2 comments
Open

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

dili5 opened this issue Sep 12, 2024 · 2 comments

Comments

@dili5
Copy link

dili5 commented Sep 12, 2024

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
Copy link
Member

stoiver commented Sep 12, 2024

@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
Copy link
Author

dili5 commented Sep 13, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants