Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • wslda wslda
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • wtools
  • wsldawslda
  • Wiki
  • User defined parameters

User defined parameters · Changes

Page history
Update User defined parameters authored Jun 13, 2021 by Gabriel Wlazłowski's avatar Gabriel Wlazłowski
Hide whitespace changes
Inline Side-by-side
User-defined-parameters.md
View page @ b3e15570
# Custom parameters
The W-SLDA toolkit provides a framework for creating flexible parametrization of formulas. List of numbers (of double type) that can be passed from an input file to the code is called *custom parameters*. In the input file they start with tag:
The W-SLDA toolkit provides a framework for creating flexible parametrization of formulas. The list of numbers (of double type) that can be passed from an input file to the code is called *custom parameters*. In the input file they start with the tag:
```bash
# Custom parameters
params0 0.0 # value of the parameter
params1 1.0 # value of the parameter
params2 2.0 # value of the parameter
# ... and so on ...
# ... if you need pass string parameter...
strings0 aaa
strings1 bbb
```
Maximal number of parameters is specified in `predefines.h` by macro-variable:
```c
......@@ -33,7 +36,7 @@ During the self-iteration process, before `params` array is passed to user-defin
* @param params array of size MAX_USER_PARAMS with parameters from input file.
* @param kF typical Fermi momentum scale of the problem.
* kF=referencekF if the referencekF tag is indicated in the input file,
* otherwise to kF value is assigned according formula kF=(3*pi^2*n)^{1/3}, where n corresponds to maximal density.
* otherwise to kF value is assigned according to formula kF=(3*pi^2*n)^{1/3}, where n corresponds to maximal density.
* You can also set kF at request in this function using (*kF)=myvalue;
* @param mu array with chemical potentials: mu[SPINA] and mu[SPINB].
* @param extra_data_size size of extra_data in bytes, if extra_data size=0 the optional data is not uploaded
......@@ -86,6 +89,9 @@ and
* */
int load_extra_data(size_t size, void *extra_data, double *params)
{
// ... for example
// FILE *f=fopen(input->strings[0], "r");
// ...
return 0;
}
```
......
Clone repository
  • API version
  • Automatic interpolations
  • Auxiliary tools
  • Browsing the code
  • Broyden algorithm
  • C and CUDA
  • Campaign of calculations
  • Checking correctness of settings
  • Chemical potentials control
  • Code & Results quality
  • Common failures of static codes
  • Common failures of time dependent codes
  • Computation domain
  • Configuring GPU machine
  • Constraining densities and potentials
View All Pages