GithubHelp home page GithubHelp logo

crompulence / cpl_app_lammps-dev Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 10.73 MB

CPL library Application code for LAMMPS

Home Page: http://www.cpl-library.org

Makefile 1.26% Shell 3.18% C++ 44.44% Python 50.75% Dockerfile 0.38%

cpl_app_lammps-dev's People

Contributors

adnansufian avatar edu159 avatar edwardsmith999 avatar gavinpringle avatar hqche avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

cpl_app_lammps-dev's Issues

Latest Stable LAMMPS has interface changes to Region which breaks USER-CPL

The commit hash which introduces this is here:

aa4787f6046ae9071f56d9f55a83d7643a8768ce

The errors are of the form:

    ../fix_cpl_force.cpp:460:23: error: ‘class LAMMPS_NS::Domain’ has no member named ‘find_region’; did you mean ‘add_region’?
      460 |     int rid = domain->find_region (regionstr);
    
    ../fix_cpl_force.cpp:461:35: error: ‘std::unordered_set<LAMMPS_NS::Region*> LAMMPS_NS::Domain::regions’ is protected within this context
      461 |     auto cplforceregion = domain->regions[rid];
          |                                   ^~~~~~~
    In file included from ../fix_cpl_force.cpp:74:
    ../domain.h:176:32: note: declared protected here
      176 |   std::unordered_set<Region *> regions;
          |                                ^~~~~~~
    ../fix_cpl_force.cpp:461:42: error: no match for ‘operator[]’ (operand types are ‘std::unordered_set<LAMMPS_NS::Region*>’ and ‘int’)
      461 |     auto cplforceregion = domain->regions[rid];
          |                                          ^

Where it seem region is now stored in a list and not as number of indices

 auto regions = lammps_->domain->get_region_list();

replaces

 int nregion = this->nregion();

and the mechanism for getting regions is now,

domain->get_region_by_id(idregion))

which replaces the old

domain->find_region(idregion))

A full set of changes are here:

lammps/lammps@aa4787f

load module cplpy

in CPL_APP_LAMMPS-DEV/test/constant_force/CFD_single_ball.py

I have not been able to load module cplpy required in line:
from cplpy import CPL

How to solve this?

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.