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 install and use fable in Windows #942

Open
seek3366 opened this issue Dec 20, 2023 · 3 comments
Open

How to install and use fable in Windows #942

seek3366 opened this issue Dec 20, 2023 · 3 comments

Comments

@seek3366
Copy link

seek3366 commented Dec 20, 2023

  I have install the cctbx through Conda package manager and obtain the package of fable on Windows System, 

but I don't know how to use it to transform my Fortran code to C++. Can someone tell me in detail how to do it?

@nwmoriarty
Copy link
Contributor

nwmoriarty commented Dec 21, 2023 via email

@bkpoon
Copy link
Member

bkpoon commented Dec 23, 2023

Once you activate the conda environment, you should be able to run

fable.cout <Fortran file>

That should print out the code in C++. Save that to a file and you should be able to compile it. You do need the fem.hpp header file and on Windows, it is located in <conda environment directory>\Lib\site-packages\fable. To get the actual directory for your conda environment, you can run conda info and the conda environment directory should be shown under active env location

@seek3366
Copy link
Author

@bkpoon thank you very much, I did it.

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

3 participants