Reading a Gauge Configuration

From Gw-qcd-wiki
Revision as of 17:29, 8 March 2018 by Chris (talk | contribs) (Created page with 'First we need to include the qcd headers for the functions we will need. #include "layout_minsurface.h" #include "qcd_fields.h" #include "boundary_flip.h" Then f…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

First we need to include the qcd headers for the functions we will need.

    #include "layout_minsurface.h"
    #include "qcd_fields.h"
    #include "boundary_flip.h"

Then for output

    #include <iostream>

The qcd library has its own namespace so to avoid excessive typing of qcd::

    using namespace qcd;

Then we can get started with the code

    int main(int argc, char **argv)
    {
      init_machine(argc, argv);

This function initializes communications. There is more but I don't want to type all this up just to replace it.