etmc/tmLQCD — pull request #281 by urbach (2014-03-27 09:06:38+00:00)
Title: Q

this add-on should allow to use the tmLQCD inverter in library style from any other C or C++ code. It requires that first (but after MPI_Init, if required)

tmLQCD_invert_init(argc, argv, verbose);

is called. The gauge field may be read by a call to

tmLQCD_read_gauge(config);

where config is the number of the gauge field. The inverter may then be called using

tmLQCD_invert((double *) propagator, (double *) (source), op_id, write_prop);

where source and propagator need to be in tmLQCD geometry. Finally, a call to

tmLQCD_finalise();

frees the memory. Then corresponding header files are found in tmLQCD/include and one needs to link against the tmLQCD-libraries 'wrapper hmc monomial operator solver init linalg hmc xchange rational io blas lapack blas m lime'.