Code Monkey home page Code Monkey logo

debyer's People

Contributors

wojdyr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

debyer's Issues

Install issue with Ubuntu 22.04

Had installed debyer on ubuntu 22.04.1 and it worked ffine. Updated to 22.04.2, and it does not run anymore. I tried to reinstall, but autoreconf -i reuqires autoupdate. After update, the ./configure works, but make and make install generate various errors such as:

utils.h:28:12: error: invalid ‘static_cast’ from type ‘std::__cxx11::basic_ostringstream’ to type ‘std::ostringstream&’ {aka ‘std::__cxx11::basic_ostringstream&’}
28 | return static_caststd::ostringstream&(std::ostringstream() << k).str();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
utils.h: In instantiation of ‘std::string S(T) [with T = int; std::string = std::__cxx11::basic_string]’:
dbr_extend.cc:255:47: required from here
utils.h:28:12: error: invalid ‘static_cast’ from type ‘std::__cxx11::basic_ostringstream’ to type ‘std::ostringstream&’ {aka ‘std::__cxx11::basic_ostringstream&’}
make[3]: *** [Makefile:526: dbr_extend.o] Error 1
make[3]: Leaving directory '/home/jerome/Desktop/debyer-master/debyer'
make[2]: *** [Makefile:347: all] Error 2

Alternatively, when I call directly the compiler in debyer folder, I also get errors:
debyer.c:852:20: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
852 | sn = fscanf(f, " # numeric-density "DBR_F, &rdfs.density);

Anyone can help?
Thanks!

Negative values for I(2T)

In x-ray diffraction mode, using PBC, I obtain negative values for I(2theta). How is this possible ? Actually, the non periodic conditions provides much more reasonable output for a non disordered array, altough the periodic ones are supposed to provide a result closer to the infinite medium one.

Installer issue

Sorry, but I have again an install issue: autoreconf-i generates an error :configure:ac : AC_INIT not found; not an autoconf script?
Alternatively, when I call the compiler in the debye folder, it also fails, but I do not find what the error could be.
Note that I was able to successfully able to install (and use) debyer in May on ubuntu22.04.2. I fail to understand what is the nature of the error.
Thanks a lot!

Please tag releases in Git

Some source files cite Debyer version (0.4 at the time of posting). However, without Git tags it is difficult to find the commit corresponding to Debyer 0.4 release, as well as to download the source of this precise version.

Error reading some CFG files

The coordinates of an atom in a CFG file are not read properly if the line starts with '.' (i.e., when there is no digit before the decimal point of the x coordinate). This is because the parser considers that lines that don't start either with a '-' or with a digit cannot be valid coordinates (in fileio.cc, line 436).

This works if the condition
(nonblank[0] == '-' || isdigit(nonblank[0]))
is replaced with
(nonblank[0] == '-' || (nonblank[0] == '.' && isdigit(nonblank[1])) || isdigit(nonblank[0]))

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.