Stellarator-Tools
wout_diff.cpp File Reference

Utility to check the difference between two wout files. More...

#include <iostream>
#include <vector>
#include <netcdf.h>
#include <algorithm>
#include "vmec_test_commandline_parser.hpp"

Functions

std::vector< double > wout_quantity (const std::string wout_file, const std::string name)
 Load a quantity from a wout file. More...
 
int main (int argc, const char *argv[])
 Main test program. More...
 

Detailed Description

Utility to check the difference between two wout files.

Function Documentation

◆ main()

int main ( int  argc,
const char *  argv[] 
)

Main test program.

Parameters
[in]argcNumber of commandline arguments.
[in]argvArray of arguments strings.

◆ wout_quantity()

std::vector<double> wout_quantity ( const std::string  wout_file,
const std::string  name 
)

Load a quantity from a wout file.

Quantites are loaded into a flat vector for rapid comparison.

Parameters
[in]wout_fileWout file name.
[in]nameName of the wout file quantity.