Giter VIP home page Giter VIP logo

Comments (7)

logsdail avatar logsdail commented on July 29, 2024

My feeling is this should be trivial to get working in the first case, just by adding an if on this line: https://github.com/logsdail/carmm/blob/master/carmm/run/aims_calculator.py#L43 (and adding a default value on entrance to the function).

The other option is we use our own function to define the k-grid density, rather than the in-build FHI-aims functionality. We kind of did this previously, as one could define get_aims_calculator(..., get_k_grid(...), ...). You could in get_aims_calculator() just convert any given k-grid density into a k-grid, rather than passing on to FHI-aims? All are 2-3 line solutions.

from carmm.

ikowalec avatar ikowalec commented on July 29, 2024

The k_grid setting can have a type test, i. e. the tuple of integers would set the k_grid sampling same as now, and a float number (sampling density) would use get_k_grid() to obtain the (kx, ky, kz) tuple first.

How about setting up your branch of CARMM on Hawk and testing the proposed changes @OscarvanVuren? As @logsdail pointed out, this would be a good first commit.

from carmm.

OscarvanVuren avatar OscarvanVuren commented on July 29, 2024

The added if statements work correctly and put k_grid_density into calc.parameters. New problem is with ASE not recognising that a k-grid has been specified if using the new calculator.

EDIT:
Having looked in the ase.calculators.aims file on Hawk, the root of this issue becomes clear. In this script the code checks for a k-grid variable in the form of k_grid or kpts in the calc.parameters dictionary but it does not accept k_grid_density as a valid k-grid assignment. This is not the case in the source code for ASE from their website. I would guess that this is simply because it was not possible before to use a k-grid density with the code and ASE on Hawk is not up to date.

from carmm.

ikowalec avatar ikowalec commented on July 29, 2024

Yep, the change I made to the ASE code re: k_grid_density are now part of the master version. Perhaps test in local environment? Updates to the venv should be tested and discussed with the rest of the group first.

from carmm.

logsdail avatar logsdail commented on July 29, 2024

I’m happy to update the ASE version on Hawk if we know it won’t cause issues. What is the version on Hawk, and what do we need to raise it to?

from carmm.

logsdail avatar logsdail commented on July 29, 2024

I’ll have to put out a public service announcement with the update, but that’s all good.

from carmm.

OscarvanVuren avatar OscarvanVuren commented on July 29, 2024

The newest version of ASE doesn't seem to use calculators in the same way that it does now, instead applying profiles for each QM code to a general calculator template. As far as I can tell, making this work with the current version of Carmm would require rewriting a lot of the code.
I am going to close this issue for now as it seems to me that the solution isn't worth the time that would be spent on it.

from carmm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.