blitzpp / blitz

Blitz++ Multi-Dimensional Array Library for C++
https://github.com/blitzpp/blitz/wiki
Other
405 stars 84 forks source link

Many examples don't work #60

Open slayoo opened 5 years ago

slayoo commented 5 years ago

Migrated from: https://sourceforge.net/p/blitz/bugs/34/

As reported by @torquil on 2011-12-10:

It seems that the latest Mercurial source does no contain blitz/array-old.h. The example "cfd.cpp" depends on this file, so it doesn't work. In "cfd.cpp", there are also some negative comments, e.g.:

"There are serious bugs, this simulation doesn't work very well."

So perhaps this example should be removed or updated, if array-old.h is not expected to return?

This compilation error also causes the other examples to not be built, since "make" stops the build process at this point.

Due to this, I did the following in order to compile the other examples:

$ for i in *.cpp; do make $(basename $i .cpp); done

and found that the following cpp-files did not compile:

cfd.cpp curldiv.cpp diff.cpp erf.cpp indirect.cpp pauli.cpp pick.cpp profile.cpp qcd.cpp rangexpr.cpp stencil3.cpp stencilet.cpp tiny2.cpp tiny3.cpp tiny.cpp transform.cpp

Best regards Torquil M. Sørensen

Here's a relevant comment from a 2012 commi (https://github.com/blitzpp/blitz/commit/8a56e2bbd977e95298deb9b713c52a1e69d0d7d4):

Commented out several example programs which rely on the Vector classes and are therefore not currently functional. The Vector classes need to be updated to use the new style expression template machinery in blitz. The old style ET machinery has been removed to reduce the overall amount of blitz code.