Skip to content

Instantly share code, notes, and snippets.

@aeantipov
aeantipov / CmakeCacheTRIQS.txt
Created November 10, 2011 14:49
CMakeCache TRIQS
# This is the CMakeCache file.
# For build in directory: /home/antipov/Downloads/triqs_build
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
@aeantipov
aeantipov / TriqsCmakeCacheMKL.txt
Created November 14, 2011 13:00
TRIQS_MKL_CmakeCache
# This is the CMakeCache file.
# For build in directory: /home/antipov/Downloads/triqs_build2
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.
@aeantipov
aeantipov / Pade_diff
Created April 17, 2012 12:10
Pade diff
1c1
< HDF5 "pytriqs/Base/test/Pade.output.h5" {
---
> HDF5 "../triqs_src/pytriqs/Base/test/Pade.output.h5" {
20,554c20,554
< (0,0,0,0): -0.182154, -0.00404348,
< (0,0,1,0): -0.182565, -0.00406619,
< (0,0,2,0): -0.182978, -0.00408914,
< (0,0,3,0): -0.183394, -0.00411232,
< (0,0,4,0): -0.183812, -0.00413574,
@aeantipov
aeantipov / Pade_diff2
Created April 17, 2012 12:48
Pade %15.f diff
1c1
< HDF5 "pytriqs/Base/test/Pade.output.h5" {
---
> HDF5 "../triqs_src/pytriqs/Base/test/Pade.output.h5" {
20,1219c20,1219
< (0,0,0,0): -0.182154339549769, -0.004043478549395,
< (0,0,1,0): -0.182565179324801, -0.004066191898641,
< (0,0,2,0): -0.182978322228694, -0.004089138406826,
< (0,0,3,0): -0.183393790945537, -0.004112321547549,
< (0,0,4,0): -0.183811608485047, -0.004135744861183,
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eba818a..cfbeaee 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -398,6 +398,7 @@ if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
configure_file(./cmake/TRIQSConfig.cmake.in Config/TRIQSConfig.cmake @ONLY)
else()
configure_file(./cmake/TRIQSConfig.cmake.in Config/TRIQSConfig1.cmake @ONLY )
+ find_package(Python)
EXEC_PYTHON_SCRIPT( "import re;open('${CMAKE_CURRENT_BINARY_DIR}/Config/TRIQSConfig.cmake','w').write(re.sub(r';*\\s*-framework\\s+([a-zA-Z_][a-zA-Z_0-9]*)',r' \"-framework \\1
#include <alps/mc/mcbase.hpp>
#include <alps/mc/mcmpiadapter.hpp>
#include <alps/mc/api.hpp>
#include <alps/accumulator.hpp>
#include <alps/params.hpp>
#include <alps/utility/stop_callback.hpp>
class sim1 : public alps::mcbase {
public:
@aeantipov
aeantipov / reduce_test02.cpp
Last active August 29, 2015 14:07
Crashes of RealVectorObservable on mpi reduce
#include <alps/mc/mcbase.hpp>
#include <alps/mc/mcmpiadapter.hpp>
#include <alps/mc/api.hpp>
#include <alps/accumulator.hpp>
#include <alps/params.hpp>
#include <alps/utility/stop_callback.hpp>
class sim1 : public alps::mcbase {
public:
@aeantipov
aeantipov / save_test.cpp
Last active August 29, 2015 14:08
accumulators::SignedObservableType + hdf5
#include <alps/mc/mcbase.hpp>
#include <alps/mc/mpiadapter.hpp>
#include <alps/mc/api.hpp>
#include <alps/mc/stop_callback.hpp>
#include <alps/accumulators.hpp>
#include <alps/params.hpp>
class sim1 : public alps::mcbase {
public:
3c3
< int main() { std::cout << "Hello world" << std::endl; }
---
> int main() { std::cout << "Hello" << std::endl; }
[2016-11-27 20:11:43.027] [warning] [grabber] event_manipulator_ is not ready. Please wait for a while.
[2016-11-27 20:11:44.027] [warning] [grabber] event_manipulator_ is not ready. Please wait for a while.
[2016-11-27 20:11:45.026] [warning] [grabber] event_manipulator_ is not ready. Please wait for a while.
[2016-11-27 20:11:46.035] [warning] [grabber] event_manipulator_ is not ready. Please wait for a while.
[2016-11-27 20:11:47.026] [warning] [grabber] event_manipulator_ is not ready. Please wait for a while.
[2016-11-27 20:11:48.026] [warning] [grabber] event_manipulator_ is not ready. Please wait for a while.
[2016-11-27 20:11:49.027] [warning] [grabber] event_manipulator_ is not ready. Please wait for a while.
[2016-11-27 20:11:50.026] [warning] [grabber] event_manipulator_ is not ready. Please wait for a while.
[2016-11-27 20:11:51.026] [warning] [grabber] event_manipulator_ is not ready. Please wait for a while.
[2016-11-27 20:11:52.026] [warning] [grabber] event_manipulator_ is not ready. Please wa