/********************************************************** This software is part of J.-S. Caux's ABACUS library. Copyright (c) J.-S. Caux. ----------------------------------------------------------- File: ODSLF_DSF.cc Purpose: main function for ABACUS for spinless fermions related to Heisenberg spin-1/2 chain ***********************************************************/ #include "ABACUS.h" using namespace std; using namespace ABACUS; int main(int argc, char* argv[]) { if (argc != 10) { // provide some info cout << endl << "Welcome to ABACUS\t(copyright J.-S. Caux)." << endl; cout << "Usage of ODSLF_DSF executable: " << endl; cout << endl << "Provide the following arguments:" << endl << endl; cout << "char whichDSF \t\t Which structure factor should be calculated ? Options are: " "m for S- S+, z for Sz Sz, p for S+ S-." << endl; cout << "DP Delta \t\t Value of the anisotropy: use positive real values only" << endl; cout << "int N \t\t\t Length (number of sites) of the system: use positive even integer values only" << endl; cout << "int M \t\t\t Number of down spins: use positive integer values between 1 and N/2" << endl; cout << "int iKmin" << endl << "int iKmax \t\t Min and max momentum integers to scan over: " "recommended values: 0 and N" << endl; cout << "int Max_Secs \t\t Allowed computational time: (in seconds)" << endl; cout << "DP target_sumrule \t sumrule saturation you're satisfied with" << endl; cout << "bool refine \t\t Is this a refinement of a earlier calculations ? (0 == false, 1 == true)" << endl; cout << endl << "EXAMPLE: " << endl << endl; cout << "ODSLF_DSF z 1.0 100 40 0 100 600 1.0 0" << endl << endl; } else if (argc == 10) { // !fixed_iK char whichDSF = *argv[1]; DP Delta = atof(argv[2]); int N = atoi(argv[3]); int M = atoi(argv[4]); int iKmin = atoi(argv[5]); int iKmax = atoi(argv[6]); int Max_Secs = atoi(argv[7]); DP target_sumrule = atof(argv[8]); bool refine = (atoi(argv[9]) == 1); Scan_ODSLF (whichDSF, Delta, N, M, iKmin, iKmax, Max_Secs, target_sumrule, refine, 0, 1); } else ABACUSerror("Wrong number of arguments to ODSLF_DSF executable."); return(0); }