Modified support for double precision.

This commit is contained in:
mkazhdan
2018-07-31 14:26:54 -04:00
parent b733c9e0f2
commit a2a19494a4
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -715,12 +715,12 @@ int main( int argc , char* argv[] )
typedef IsotropicUIntPack< DIMENSION , FEMDegreeAndBType< Degree , BType >::Signature > FEMSigs;
fprintf( stderr , "[WARNING] Compiled for degree-%d, boundary-%s, %s-precision _only_\n" , Degree , BoundaryNames[ BType ] , sizeof(Real)==4 ? "single" : "double" );
if( !PointWeight.set ) PointWeight.value = DefaultPointWeightMultiplier*Degree;
if( Colors.set ) Execute< DefaultFloatType , PointStreamColor< DefaultFloatType > >( argc , argv , FEMSigs() );
else Execute< DefaultFloatType >( argc , argv , FEMSigs() );
if( Colors.set ) Execute< Real , PointStreamColor< DefaultFloatType > >( argc , argv , FEMSigs() );
else Execute< Real >( argc , argv , FEMSigs() );
#else // !FAST_COMPILE
if( !PointWeight.set ) PointWeight.value = DefaultPointWeightMultiplier*Degree.value;
if( Colors.set ) Execute< DIMENSION , float , PointStreamColor< float > >( argc , argv );
else Execute< DIMENSION , float >( argc , argv );
if( Colors.set ) Execute< DIMENSION , Real , PointStreamColor< float > >( argc , argv );
else Execute< DIMENSION , Real >( argc , argv );
#endif // FAST_COMPILE
if( Performance.set )
{
+4 -4
View File
@@ -717,11 +717,11 @@ int main( int argc , char* argv[] )
static const BoundaryType BType = DEFAULT_FEM_BOUNDARY;
typedef IsotropicUIntPack< DIMENSION , FEMDegreeAndBType< Degree , BType >::Signature > FEMSigs;
fprintf( stderr , "[WARNING] Compiled for degree-%d, boundary-%s, %s-precision _only_\n" , Degree , BoundaryNames[ BType ] , sizeof(Real)==4 ? "single" : "double" );
if( Colors.set ) Execute< DefaultFloatType , PointStreamColor< DefaultFloatType > >( argc , argv , FEMSigs() );
else Execute< DefaultFloatType >( argc , argv , FEMSigs() );
if( Colors.set ) Execute< Real , PointStreamColor< DefaultFloatType > >( argc , argv , FEMSigs() );
else Execute< Real >( argc , argv , FEMSigs() );
#else // !FAST_COMPILE
if( Colors.set ) Execute< DIMENSION , float , PointStreamColor< float > >( argc , argv );
else Execute< DIMENSION , float >( argc , argv );
if( Colors.set ) Execute< DIMENSION , Real , PointStreamColor< float > >( argc , argv );
else Execute< DIMENSION , Real >( argc , argv );
#endif // FAST_COMPILE
if( Performance.set )
{