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

Last edited by Andrzej MakowskI Aug 27, 2021
Page history

Data types

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 how one can create a variable:

    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:

    wdata_variable vdelta = {"delta", "complex16", "none", "wdat"};

here, complex16 denotes the double-precision (default), if one wants to save a space and store variable in single-precision one should change it to complex8.

Similar syntax is used in vectors variable:

    wdata_variable vcurrent_a = {"current_a", "vector8", "none", "wdat"};

here each element of a vector (number of elements depends on the datadim) is a double-precision, real8 number.

Clone repository
  • Data types
  • Examples
    • C examples
    • Python examples
  • Tags
  • VisIt plugin compilation
  • Visit integration
  • Home
  • wdata format concept