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
6 * Michael Rieger, FHI, 2008
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
17 using namespace blitz
;
18 using namespace ranlib
;
20 int read_ini(const char* input_file_name
)
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);
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
;
51 std::cout
<< "sth wrong with input file reading" << std::endl
;