1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

test prog now computes everything up to meson fields

This commit is contained in:
ferben 2019-01-25 15:19:18 +00:00
parent aea49bc349
commit 3438dde8df

View File

@ -116,14 +116,29 @@ void test_DistilVectors(Application &application)
DistilVecPar.eigenPack="LapEvec"; DistilVecPar.eigenPack="LapEvec";
DistilVecPar.tsrc = 0; DistilVecPar.tsrc = 0;
DistilVecPar.nnoise = 1; DistilVecPar.nnoise = 1;
DistilVecPar.LI=6; DistilVecPar.LI=5;
DistilVecPar.SI=4; DistilVecPar.SI=4;
DistilVecPar.TI=64; DistilVecPar.TI=64;
DistilVecPar.nvec=6; DistilVecPar.nvec=5;
DistilVecPar.Ns=4; DistilVecPar.Ns=4;
DistilVecPar.Nt=64; DistilVecPar.Nt=64;
DistilVecPar.Nt_inv=1; DistilVecPar.Nt_inv=1;
application.createModule<MDistil::DistilVectors>("DistilVectorsInstance",DistilVecPar); application.createModule<MDistil::DistilVectors>("DistilVecs",DistilVecPar);
}
/////////////////////////////////////////////////////////////
// MesonFields
/////////////////////////////////////////////////////////////
void test_MesonField(Application &application)
{
// DistilVectors parameters
MContraction::A2AMesonField::Par A2AMesonFieldPar;
A2AMesonFieldPar.left="DistilVecs_phi";
A2AMesonFieldPar.right="DistilVecs_rho";
A2AMesonFieldPar.output="DistilFields";
A2AMesonFieldPar.gammas="all";
A2AMesonFieldPar.mom={"0 0 0"};
application.createModule<MContraction::A2AMesonField>("DistilMesonField",A2AMesonFieldPar);
} }
bool bNumber( int &ri, const char * & pstr, bool bGobbleWhiteSpace = true ) bool bNumber( int &ri, const char * & pstr, bool bGobbleWhiteSpace = true )
@ -209,12 +224,19 @@ int main(int argc, char *argv[])
test_LapEvec( application ); test_LapEvec( application );
test_Perambulators( application ); test_Perambulators( application );
break; break;
default: // 3 case 3: // 3
test_Global( application ); test_Global( application );
test_LapEvec( application ); test_LapEvec( application );
test_Perambulators( application ); test_Perambulators( application );
test_DistilVectors( application ); test_DistilVectors( application );
break; break;
case 4: // 4
test_Global( application );
test_LapEvec( application );
test_Perambulators( application );
test_DistilVectors( application );
test_MesonField( application );
break;
} }
LOG(Message) << "====== XML creation for test " << iTestNum << " complete ======" << std::endl; LOG(Message) << "====== XML creation for test " << iTestNum << " complete ======" << std::endl;