added using Blitz++ library
[cluster_expansion.git] / main.cpp
blob6dfdfa440d3326407a44d5a7e40c6bac8072ab99
1 /*
2 * Determination of lateral interaction parameters on a c(2x2) square lattice
3 * using linear combinations to express each interaction and then counting them in terms of cluster-expansion
4 * coefficients
6 * Michael Rieger, FHI, 2008
8 */
10 #include <iostream>
12 #include <blitz/array.h> // http://www.oonumerics.org/blitz/
13 #include <random/uniform.h> // blitz Random Number Generator - Mersenne Twister type
14 #include "SimpleIni.h" // Ini File Parser
16 using namespace std;
17 using namespace blitz;
18 using namespace ranlib;
20 int read_ini(const char* input_file_name)
22 CSimpleIni ini;
24 SI_Error rc = ini.LoadFile(input_file_name);
25 if (rc < 0) return false;
27 // output all of the items of the input file
28 CSimpleIniA::TNamesDepend sections;
29 ini.GetAllSections(sections);
31 // CSimpleIniA::TNamesDepend keys;
32 // ini.GetAllKeys("section-name", keys);
37 return 1;
41 int main(int argc, char* argv[])
44 // subroutine to read all necessary input files
45 if (read_ini(argv[1]))
47 std::cout << "all fine" << std::endl;
49 else
51 std::cout << "sth wrong with input file reading" << std::endl;
54 return 0;