Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • wdata wdata
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • 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
  • wdatawdata
  • Wiki
  • Data types

Data types · Changes

Page history
Update Data types authored Jun 15, 2021 by Andrzej MakowskI's avatar Andrzej MakowskI
Hide whitespace changes
Inline Side-by-side
Data-types.md
View page @ a6ea6fa0
asd
\ No newline at end of file
WData format supports three data types:
- real
- complex
- vectors
Each of which can be saved with single (float in C notation) or double (double in C notation) precision. See [example-write.c](https://gitlab.fizyka.pw.edu.pl/wtools/wdata/-/blob/master/c-examples/example-write.c) how one can create a variable:
```c
wdata_variable vdensity_a = {"density_a", "real8", "none", "wdat"};
```
Here, `real8` denotes the double-precision (default), if one wants to save a space and store variables in single-precision one should change it to `real4`.
If there is a complex number one wants to store then in order to add:
```c
wdata_variable vdelta = {"delta", "complex8", "none", "wdat"};
```
here, `complex8` denotes the double-precision (default).
\ No newline at end of file
Clone repository
  • Data types
  • Examples
    • C examples
    • Python examples
  • Tags
  • VisIt plugin compilation
  • Visit integration
  • Home
  • wdata format concept