GCM engine for 3d problems