mirror of
				https://github.com/paboyle/Grid.git
				synced 2025-11-04 05:54:32 +00:00 
			
		
		
		
	Sizable improvement in multigrid for unsquared.
6000 matmuls CG unprec 2000 matmuls CG prec (4000 eo muls) 1050 matmuls PGCR on 16^3 x 32 x 8 m=.01 Substantial effort on timing and logging infrastructure
This commit is contained in:
		@@ -29,12 +29,12 @@ public:
 | 
			
		||||
 | 
			
		||||
template<int N,class obj,typename std::enable_if<N==obj::NestLevel >::type * = nullptr > auto function(const obj &arg)-> obj
 | 
			
		||||
{
 | 
			
		||||
  std::cout<<"Leaf "<<obj::NestLevel<<std::endl;
 | 
			
		||||
  std::cout<<GridLogMessage<<"Leaf "<<obj::NestLevel<<std::endl;
 | 
			
		||||
  return arg;
 | 
			
		||||
}
 | 
			
		||||
template<int N,class obj,typename std::enable_if<N!=obj::NestLevel >::type * = nullptr > auto function(const obj &arg)-> obj
 | 
			
		||||
{
 | 
			
		||||
  std::cout<<"Node "<<obj::NestLevel<<std::endl;
 | 
			
		||||
  std::cout<<GridLogMessage<<"Node "<<obj::NestLevel<<std::endl;
 | 
			
		||||
  obj ret;
 | 
			
		||||
  ret.internal=function<N>(arg.internal);
 | 
			
		||||
  return ret;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user