msg-byu / enumlib

Derivative structure enumeration library
MIT License
59 stars 34 forks source link

Compiling error and not linking to pymatgen EnumerateStructureTransformation() #114

Closed Asif-Iqbal-Bhatti closed 1 year ago

Asif-Iqbal-Bhatti commented 2 years ago

Bonjour,

I cannot compile the executable makestr.x. I have followed the steps on your Github profile but it is not compiling. Even the num_type module is not in the /src directory.

below is the error:

ar ru libenum.a derivative_structure_generator.o ar: u' modifier ignored sinceD' is the default (see `U') ranlib libenum.a gfortran -fPIC -g -fbounds-check -Wall -ffree-line-length-none -fno-underscoring -I../symlib/src -c makeStr.f90 makeStr.f90:9:19:

use io_utils, only: co_ca 1 Error: Symbol ‘co_ca’ referenced at (1) not found in module ‘io_utils’ Makefile:131: recipe for target 'makeStr.o' failed make: *** [makeStr.o] Error 1

I am using pymatgen how can I link this program to fortran? enum = EnumerateStructureTransformation() enumerated = enum.apply_transformation(prim_cell, 100)

Also, the purpose of the above program is to generate random structure as like in ATAT code (am I right? Is the idea the same but different approach?) where you enter the composition and based on the MC approach with the least objective function the most disordered structure is generated (Axel et al). I want to use this code to explore the chemical composition space for the ternary system.

Thank you for your help.

glwhart commented 2 years ago

Instead of using makestr.x, use makestr.py. It's intended to replace the former. Eventually this will all got fixed and documented, but not until the semester is over and I have time to work on all my github repos.

Gus Hart Professor, Physics and Astronomy http://msg.byu.edu

On Tue, Mar 1, 2022 at 2:13 AM Asif @.***> wrote:

Bonjour,

I cannot compile the executable makestr.x. I have followed the steps on your Github profile but it is not compiling. Even the num_type module is not in the /src directory.

below is the error:

ar ru libenum.a derivative_structure_generator.o ar: u' modifier ignored since D' is the default (see `U') ranlib libenum.a gfortran -fPIC -g -fbounds-check -Wall -ffree-line-length-none -fno-underscoring -I../symlib/src -c makeStr.f90 makeStr.f90:9:19:

use io_utils, only: co_ca 1 Error: Symbol ‘co_ca’ referenced at (1) not found in module ‘io_utils’ Makefile:131: recipe for target 'makeStr.o' failed make: *** [makeStr.o] Error 1

I am using pymatgen how can I link this program to fortran? enum = EnumerateStructureTransformation() enumerated = enum.apply_transformation(prim_cell, 100)

Also, the purpose of the above program is to generate random structure as like in ATAT code (am I right? Is the idea the same but different approach?) where you enter the composition and based on the MC approach with the least objective function the most disordered structure is generated (Axel et al). I want to use this code to explore the chemical composition space for the ternary system.

Thank you for your help.

— Reply to this email directly, view it on GitHub https://github.com/msg-byu/enumlib/issues/114, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB3UNGEUC4VU27DVMABYU73U5XNVJANCNFSM5PTOJQKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

glwhart commented 1 year ago

makestr.x is fixed. Still, makestr.py is the more useful/flexible way to make structures from struct_enum.out