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.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. "
  14. "Use c (best to set to 1), mu, Omega, kBT, TT(minutes), "
  15. "bool Save_data (0 == false).");
  16. DP c_int = atof(argv[1]);
  17. DP mu = atof(argv[2]);
  18. DP Omega = atof(argv[3]);
  19. DP kBT = atof(argv[4]);
  20. int Max_Secs = 60 * atoi(argv[5]);
  21. bool Save_data = bool(atoi(argv[6]));
  22. if (c_int <= 0.0) ABACUSerror("Give a strictly positive c.");
  23. if (Omega <= 0.0) ABACUSerror("Give a strictly positive Omega, "
  24. "otherwise the algorithm cannot converge.");
  25. if (kBT <= 0.0) ABACUSerror("Negative T ? You must be a string theorist.");
  26. if (Max_Secs < 10) ABACUSerror("Give more time.");
  27. Solve_2CBG_TBAE_via_refinements (c_int, mu, Omega, kBT, Max_Secs, Save_data);
  28. return(0);
  29. }