Commit 805f5a16 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed VectorField to work with CUDA 10

This reverts commit b8dbc55e
parent 14a9b2d3
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -177,10 +177,7 @@ makeSnapshot( const RealType& time,
  physicalVariablesGetter.getVelocity( this->conservativeVariables, this->velocity );
  physicalVariablesGetter.getPressure( this->conservativeVariables, this->gamma, this->pressure );

   TNL_ASSERT_TRUE( false, "The following does not work." );
   // nvcc 10.1.243
   // TNL/Functions/VectorField.h|404| error #2986: cannot use an entity undefined in device code
  /* FileName fileName;
   FileName fileName;
   fileName.setExtension( "vti" );
   fileName.setIndex( step );
   fileName.setFileNameBase( "density-" );
@@ -197,7 +194,7 @@ makeSnapshot( const RealType& time,

   fileName.setFileNameBase( "momentum-" );
   this->conservativeVariables->getMomentum()->write( "momentum", fileName.getFileName() );
   */

   return true;
}

+2 −5
Original line number Diff line number Diff line
@@ -177,10 +177,7 @@ makeSnapshot( const RealType& time,
  physicalVariablesGetter.getVelocity( this->conservativeVariables, this->velocity );
  physicalVariablesGetter.getPressure( this->conservativeVariables, this->gamma, this->pressure );

   TNL_ASSERT_TRUE( false, "The following does not work." );
   // nvcc 10.1.243
   // TNL/Functions/VectorField.h|404| error #2986: cannot use an entity undefined in device code
  /* FileName fileName;
   FileName fileName;
   fileName.setExtension( "vti" );
   fileName.setIndex( step );
   fileName.setFileNameBase( "density-" );
@@ -197,7 +194,7 @@ makeSnapshot( const RealType& time,

   fileName.setFileNameBase( "momentum-" );
   this->conservativeVariables->getMomentum()->write( "momentum", fileName.getFileName() );
   */

   return true;
}

+2 −5
Original line number Diff line number Diff line
@@ -189,10 +189,7 @@ makeSnapshot( const RealType& time,
  physicalVariablesGetter.getVelocity( this->conservativeVariables, this->velocity );
  physicalVariablesGetter.getPressure( this->conservativeVariables, this->gamma, this->pressure );

   TNL_ASSERT_TRUE( false, "The following does not work." );
   // nvcc 10.1.243
   // TNL/Functions/VectorField.h|404| error #2986: cannot use an entity undefined in device code
   /*FileName fileName;
   FileName fileName;
   fileName.setExtension( "vti" );
   fileName.setIndex( step );
   fileName.setFileNameBase( "density-" );
@@ -209,7 +206,7 @@ makeSnapshot( const RealType& time,

   fileName.setFileNameBase( "momentum-" );
   this->conservativeVariables->getMomentum()->write( "momentum", fileName.getFileName() );
   */

   return true;
}

+2 −6
Original line number Diff line number Diff line
@@ -174,11 +174,7 @@ makeSnapshot( const RealType& time,
  physicalVariablesGetter.getVelocity( this->conservativeVariables, this->velocity );
  physicalVariablesGetter.getPressure( this->conservativeVariables, this->gamma, this->pressure );

   TNL_ASSERT_TRUE( false, "The following does not work." );
   // nvcc 10.1.243
   // TNL/Functions/VectorField.h|404| error #2986: cannot use an entity undefined in device code
   
  /* FileName fileName;
   FileName fileName;
   fileName.setExtension( "vti" );
   fileName.setIndex( step );
   fileName.setFileNameBase( "density-" );
@@ -195,7 +191,7 @@ makeSnapshot( const RealType& time,

   fileName.setFileNameBase( "momentum-" );
   this->conservativeVariables->getMomentum()->write( "momentum", fileName.getFileName() );
   */

   return true;
}

+2 −5
Original line number Diff line number Diff line
@@ -174,10 +174,7 @@ makeSnapshot( const RealType& time,
  physicalVariablesGetter.getVelocity( this->conservativeVariables, this->velocity );
  physicalVariablesGetter.getPressure( this->conservativeVariables, this->gamma, this->pressure );

   TNL_ASSERT_TRUE( false, "The following does not work." );
   // nvcc 10.1.243
   // TNL/Functions/VectorField.h|404| error #2986: cannot use an entity undefined in device code
   /*FileName fileName;
   FileName fileName;
   fileName.setExtension( "vti" );
   fileName.setIndex( step );
   fileName.setFileNameBase( "density-" );
@@ -194,7 +191,7 @@ makeSnapshot( const RealType& time,

   fileName.setFileNameBase( "momentum-" );
   this->conservativeVariables->getMomentum()->write( "momentum", fileName.getFileName() );
   */

   return true;
}

Loading