-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hb solver #546
Commits on Jul 6, 2022
-
I am adding a functionality to the HMC. For the CLOVERDETRATIO monomi…
…al, it's now possible to specify a solver for the heatbath, different from the one used in the MD evolution (computation of the forces). In order to do that I made the following changes to the code: 1. I added `int HB_solver; // solver for the HB only (optional) ` and ` solver_params_t HB_solver_params; // parameters of the HB solver ` to the `monomial` struct in `monomial/monomial.h`. 2. I wrote the declaration `%x HB_MSOLVER` in `read_input.l`. There I also wrote ` {SPC}*HB_Solver{EQL} { solver_caller=YY_START; BEGIN(NDMSOLVER); } ` in `<NDRATMONOMIAL,NDRATCORMONOMIAL,NDCLRATMONOMIAL,NDCLRATCORMONOMIAL,NDDETRATMONOMIAL,NDCLDETRATMONOMIAL>`, which I defined the block `<HB_MSOLVER>`, analogously to `<MSOLVER>`, replacing all the occurrencies of `mnl->solver =` with `mnl->HB_solver =`. ** To do**: do the same with the solver_parameters 3. I added `INVALID_SOLVER` to the `SOLVER_TYPE` enum in `solver/solver_type.h`. It's value is `26`. 4. I added the macro `#define _default_HB_solver_flag 26 // this is INVALID_SOLVER (see solver/solver_types.h)` in `default_input_values.h`. 5. In `monomial/cloverdetratio_monomial.c` I changed the function `cloverdetratio_heatbath()` replacing all the occurrencies of `mnl->solver` and `mnl->solver_params` with `mnl->HB_solver` and `mnl->HB_solver_params` respectively. 6. In `monomial/monomial.c`: - In `add_monomial()`, I added `monomial_list[no_monomials].HB_solver = _default_HB_solver_flag;` in the function `add_monomial()`. - In `init_monomials()`, when the HB solver is invalid, i.e. `(monomial_list[i].HB_solver == INVALID_SOLVER`, I set the `HB_solver` and ` Hb_solver_params` equal to the ones used in the MD evolution. In short: if the HB solver is not specified in the input file, the solver type and its parameters are copied from what was specified for the MD. (note that the `hbfunction` is the same, but now uses the HB solver and its parameters)
Configuration menu - View commit details
-
Copy full SHA for 9640a58 - Browse repository at this point
Copy the full SHA 9640a58View commit details -
In
read_input.l
, I added the block`<DETMONOMIAL,CLDETMONOMIAL,CLDETRATMONOMIAL,CLDETRATRWMONOMIAL,NDRATMONOMIAL,NDRATCORMONOMIAL,NDCLRATMONOMIAL,NDCLRATCORMONOMIAL,RATMONOMIAL,RATCORMONOMIAL,CLRATMONOMIAL,CLRATCORMONOMIAL,NDDETRATMONOMIAL,NDCLDETRATMONOMIAL>` which parses, for each monomial `mnl`, the `HB_solver_params` attributes. I did it by copying and pasting the same block for `mnl->solver_params` and preplacing those occurrences with `mnl->HB_solver_params`. Note that the default values don't need to be specified because the default corresponds to the solver used in the MD evolution.
Configuration menu - View commit details
-
Copy full SHA for 7cdddf5 - Browse repository at this point
Copy the full SHA 7cdddf5View commit details
Commits on Jul 8, 2022
-
In
monomial/detratio_monomial.c
I changed the function `detratio_he……atbath()` replacing all the occurrencies of `mnl->solver` and `mnl->solver_params` with `mnl->HB_solver` and `mnl->HB_solver_params` respectively.
Configuration menu - View commit details
-
Copy full SHA for 40482d0 - Browse repository at this point
Copy the full SHA 40482d0View commit details
Commits on Jul 12, 2022
-
Reply to #546 (comment). I've prepended
HB_
to the parsing strings:`HB_UseExternalInverter, HB_UseSloppyPrecision, HB_UseCompression`
Configuration menu - View commit details
-
Copy full SHA for c39d63e - Browse repository at this point
Copy the full SHA c39d63eView commit details -
Reply to #546 (comment). I removed the block
` {SPC}*HB_Solver{EQL} { solver_caller=YY_START; BEGIN(NDMSOLVER); ` We don't need to be able to set the HB solver also for the ND monomial.
Configuration menu - View commit details
-
Copy full SHA for 327f2d8 - Browse repository at this point
Copy the full SHA 327f2d8View commit details -
Reply to #546 (comment). I've added the default initialization of the…
… HB_solver also for the DETRATIO monomial.
Configuration menu - View commit details
-
Copy full SHA for 860e5ad - Browse repository at this point
Copy the full SHA 860e5adView commit details -
HB_solver specified only for the cloverdetratio and detratio monomials
Configuration menu - View commit details
-
Copy full SHA for 2534c6c - Browse repository at this point
Copy the full SHA 2534c6cView commit details -
- Removed extra spaces in blockS (flex syntax error) modified: read_input.l
Simone Romiti committedJul 12, 2022 Configuration menu - View commit details
-
Copy full SHA for 141c9a6 - Browse repository at this point
Copy the full SHA 141c9a6View commit details
Commits on Jul 13, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3cf0922 - Browse repository at this point
Copy the full SHA 3cf0922View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7438daa - Browse repository at this point
Copy the full SHA 7438daaView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0d772d - Browse repository at this point
Copy the full SHA d0d772dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5bccf10 - Browse repository at this point
Copy the full SHA 5bccf10View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d14fc4 - Browse repository at this point
Copy the full SHA 0d14fc4View commit details
Commits on Jul 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for cc5292a - Browse repository at this point
Copy the full SHA cc5292aView commit details
Commits on Nov 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4f02cc5 - Browse repository at this point
Copy the full SHA 4f02cc5View commit details
Commits on Dec 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 23f7f54 - Browse repository at this point
Copy the full SHA 23f7f54View commit details -
1
Configuration menu - View commit details
-
Copy full SHA for ff57999 - Browse repository at this point
Copy the full SHA ff57999View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cc0336 - Browse repository at this point
Copy the full SHA 0cc0336View commit details
Commits on Jan 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c330493 - Browse repository at this point
Copy the full SHA c330493View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7786c3e - Browse repository at this point
Copy the full SHA 7786c3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ee1c4e1 - Browse repository at this point
Copy the full SHA ee1c4e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8854044 - Browse repository at this point
Copy the full SHA 8854044View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41a9916 - Browse repository at this point
Copy the full SHA 41a9916View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81a9c80 - Browse repository at this point
Copy the full SHA 81a9c80View commit details -
Configuration menu - View commit details
-
Copy full SHA for 704b891 - Browse repository at this point
Copy the full SHA 704b891View commit details -
Configuration menu - View commit details
-
Copy full SHA for b855787 - Browse repository at this point
Copy the full SHA b855787View commit details -
Configuration menu - View commit details
-
Copy full SHA for bcf6cfb - Browse repository at this point
Copy the full SHA bcf6cfbView commit details -
apparently the OpenMPI package does not ship with libmpi any more, th…
…ere's a separate lib file now
Configuration menu - View commit details
-
Copy full SHA for 1d05e28 - Browse repository at this point
Copy the full SHA 1d05e28View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad2738b - Browse repository at this point
Copy the full SHA ad2738bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe1d38b - Browse repository at this point
Copy the full SHA fe1d38bView commit details
Commits on Jan 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for bd9e369 - Browse repository at this point
Copy the full SHA bd9e369View commit details
Commits on Feb 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 5c25216 - Browse repository at this point
Copy the full SHA 5c25216View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f65fe9 - Browse repository at this point
Copy the full SHA 7f65fe9View commit details
Commits on Feb 3, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 10989e0 - Browse repository at this point
Copy the full SHA 10989e0View commit details
Commits on Feb 4, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fadcbc1 - Browse repository at this point
Copy the full SHA fadcbc1View commit details
Commits on Mar 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d8a7d38 - Browse repository at this point
Copy the full SHA d8a7d38View commit details
Commits on Mar 2, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d24e5ce - Browse repository at this point
Copy the full SHA d24e5ceView commit details
Commits on Mar 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ac9349e - Browse repository at this point
Copy the full SHA ac9349eView commit details