https://github.com/SModelS/smodels
Tip revision: fda91864483f39086fa4bbc11a4717325560282d authored by Wolfgang Waltenberger on 09 November 2020, 18:33:00 UTC
0.338
0.338
Tip revision: fda9186
run.cpp
#include <SModelS.h>
#include <iostream>
#include <string>
/** example only */
using namespace std;
int main( int argc, char * argv[] )
{
/** initialise SModelS, load database. The first argument
* points to the SModelS config file,
* the second argument (``smodelsdir'') must point to the
* top-level directory of the SModelS installation */
SModelS smodels ( "./parameters.ini", "../" );
/** run over one single file or directory */
int ret = smodels.run ( "test.slha" );
/* return value, zero if successful */
return ret;
}