cctbx / cctbx_project

Computational Crystallography Toolbox
https://cci.lbl.gov/docs/cctbx
Other
208 stars 111 forks source link

How to install and use fable in Windows #942

Open seek3366 opened 6 months ago

seek3366 commented 6 months ago
  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 commented 6 months ago

I did a google search for cctbx fable and found this. Try this out but you may have to translate some of the command into Windows prompt.

Cheers

Nigel


Nigel W. Moriarty Building 33R0349, Molecular Biophysics and Integrated Bioimaging Lawrence Berkeley National Laboratory Berkeley, CA 94720-8235 Email : @.*** Web : CCI.LBL.gov ORCID : orcid.org/0000-0001-8857-9464

On Wed, Dec 20, 2023 at 12:40 AM seek3366 @.***> wrote:

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?

— Reply to this email directly, view it on GitHub https://github.com/cctbx/cctbx_project/issues/942, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHYQPC3OJMUVHNRFKGLTBLYKKP6ZAVCNFSM6AAAAABA4OBVOWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2TAMBZG42DCNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

bkpoon commented 6 months ago

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 commented 6 months ago

@bkpoon thank you very much, I did it.