crompulence / cpl_app_lammps-dev Goto Github PK
View Code? Open in Web Editor NEWCPL library Application code for LAMMPS
Home Page: http://www.cpl-library.org
CPL library Application code for LAMMPS
Home Page: http://www.cpl-library.org
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:
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.