Generic interface to create fields

This commit is contained in:
Alberto Ramos 2021-10-06 17:48:30 +02:00
parent 3f71a5222f
commit 0fe33c5b38
6 changed files with 30 additions and 24 deletions

View file

@ -26,7 +26,7 @@ ymws = YMworkspace(GRP, PREC, lp)
# Main program
println("Allocating gauge field")
U = field(GRP{PREC}, lp)
U = vector_field(GRP{PREC}, lp)
fill!(U, one(GRP{PREC}))
println("Time to take the configuration to memory: ")