You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2CBG_ThLim.cc 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**********************************************************
  2. This software is part of J.-S. Caux's ABACUS library.
  3. Copyright (c) J.-S. Caux.
  4. -----------------------------------------------------------
  5. File: 2CBG_ThLim.cc
  6. Purpose: solves the TBA equations for the 2-component Bose gas
  7. ***********************************************************/
  8. #include "ABACUS.h"
  9. using namespace std;
  10. using namespace ABACUS;
  11. int main(int argc, const char* argv[])
  12. {
  13. if (argc != 7) ABACUSerror("Wrong number of arguments to 2CBG_ThLim executable. Use c(best to set to 1), mu, Omega, kBT, TT(minutes), bool Save_data (0 == false).");
  14. DP c_int = atof(argv[1]);
  15. DP mu = atof(argv[2]);
  16. DP Omega = atof(argv[3]);
  17. DP kBT = atof(argv[4]);
  18. int Max_Secs = 60 * atoi(argv[5]);
  19. bool Save_data = bool(atoi(argv[6]));
  20. if (c_int <= 0.0) ABACUSerror("Give a strictly positive c.");
  21. if (Omega <= 0.0) ABACUSerror("Give a strictly positive Omega, otherwise the algorithm cannot converge.");
  22. if (kBT <= 0.0) ABACUSerror("Negative T ? You must be a string theorist.");
  23. if (Max_Secs < 10) ABACUSerror("Give more time.");
  24. //cout << "Read c_int = " << c_int << "\tmu = " << mu << "\tOmega = " << Omega << "\tkBT = " << kBT << "\tMax_Secs = " << Max_Secs << endl;
  25. Solve_2CBG_TBAE_via_refinements (c_int, mu, Omega, kBT, Max_Secs, Save_data);
  26. return(0);
  27. }