Commit b8dbc55e authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Commenting legacy code because of nvcc complains.

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

   FileName fileName;
   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.setExtension( "vti" );
   fileName.setIndex( step );
   fileName.setFileNameBase( "density-" );
@@ -194,7 +197,7 @@ makeSnapshot( const RealType& time,

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

   */
   return true;
}

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

   FileName fileName;
   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.setExtension( "vti" );
   fileName.setIndex( step );
   fileName.setFileNameBase( "density-" );
@@ -194,7 +197,7 @@ makeSnapshot( const RealType& time,

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

   */
   return true;
}

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

   FileName fileName;
   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.setExtension( "vti" );
   fileName.setIndex( step );
   fileName.setFileNameBase( "density-" );
@@ -206,7 +209,7 @@ makeSnapshot( const RealType& time,

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

   */
   return true;
}

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

   FileName fileName;
   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.setExtension( "vti" );
   fileName.setIndex( step );
   fileName.setFileNameBase( "density-" );
@@ -191,7 +195,7 @@ makeSnapshot( const RealType& time,

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

   */
   return true;
}

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

   FileName fileName;
   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.setExtension( "vti" );
   fileName.setIndex( step );
   fileName.setFileNameBase( "density-" );
@@ -191,7 +194,7 @@ makeSnapshot( const RealType& time,

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

   */
   return true;
}

Loading