您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ FatalIOErrorIn函数代码示例

51自学网 2021-06-01 20:45:42
  C++
这篇教程C++ FatalIOErrorIn函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中FatalIOErrorIn函数的典型用法代码示例。如果您正苦于以下问题:C++ FatalIOErrorIn函数的具体用法?C++ FatalIOErrorIn怎么用?C++ FatalIOErrorIn使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了FatalIOErrorIn函数的27个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: procPatch_

processorFaPatchField<Type>::processorFaPatchField(    const faPatch& p,    const DimensionedField<Type, areaMesh>& iF,    const dictionary& dict):    coupledFaPatchField<Type>(p, iF, dict),    procPatch_(refCast<const processorFaPatch>(p)){    if (!isType<processorFaPatch>(p))    {        FatalIOErrorIn        (            "processorFaPatchField<Type>::processorFaPatchField/n"            "(/n"            "    const faPatch& p,/n"            "    const Field<Type>& field,/n"            "    const dictionary& dict/n"            ")/n",            dict        )   << "/n    patch type '" << p.type()            << "' not constraint type '" << typeName << "'"            << "/n    for patch " << p.name()            << " of field " << this->dimensionedInternalField().name()            << " in file " << this->dimensionedInternalField().objectPath()            << exit(FatalIOError);    }}
开发者ID:Brzous,项目名称:WindFOAM,代码行数:29,


示例2: exit

wedgeFvPatchField<Type>::wedgeFvPatchField(    const fvPatch& p,    const DimensionedField<Type, volMesh>& iF,    const dictionary& dict):    transformFvPatchField<Type>(p, iF, dict){    if (!isType<wedgeFvPatch>(p))    {        FatalIOErrorIn        (            "wedgeFvPatchField<Type>::wedgeFvPatchField/n"            "(/n"            "    const fvPatch& p,/n"            "    const Field<Type>& field,/n"            "    dictionary& dict/n"            ")/n",            dict        )   << "/n    patch type '" << p.type()            << "' not constraint type '" << typeName << "'"            << "/n    for patch " << p.name()            << " of field " << this->dimensionedInternalField().name()            << " in file " << this->dimensionedInternalField().objectPath()            << exit(FatalIOError);    }    evaluate();}
开发者ID:Brzous,项目名称:WindFOAM,代码行数:30,


示例3: exit

wedgeFaPatchField<Type>::wedgeFaPatchField(    const faPatch& p,    const DimensionedField<Type, areaMesh>& iF,    const dictionary& dict):    transformFaPatchField<Type>(p, iF, dict){    if (!isType<wedgeFaPatch>(p))    {        FatalIOErrorIn        (            "wedgeFaPatchField<Type>::wedgeFaPatchField/n"            "(/n"            "    const faPatch& p,/n"            "    const Field<Type>& field,/n"            "    dictionary& dict/n"            ")/n",            dict        )   << "patch " << this->patch().index() << " not wedge type. "            << "Patch type = " << p.type()            << exit(FatalIOError);    }    this->evaluate();}
开发者ID:CFMS,项目名称:foam-extend-foam-extend-3.2,代码行数:27,


示例4: fName

bool Foam::functionEntries::includeEntry::execute(    dictionary& parentDict,    Istream& is){    const fileName fName(includeFileName(is));    IFstream ifs(fName);    if (ifs)    {        if (Foam::functionEntries::includeEntry::report)        {            Info<< fName << endl;        }        parentDict.read(ifs);        return true;    }    else    {        FatalIOErrorIn        (            "functionEntries::includeEntry::includeEntry"            "(dictionary& parentDict, Istream&)",            is        )   << "Cannot open include file " << ifs.name()            << " while reading dictionary " << parentDict.name()            << exit(FatalIOError);        return false;    }}
开发者ID:000861,项目名称:OpenFOAM-2.1.x,代码行数:32,


示例5: toupper

unsigned char Foam::SHA1Digest::readHexDigit(Istream& is){    // Takes into account that 'a' (or 'A') is 10    static const int alphaOffset = toupper('A') - 10;    // Takes into account that '0' is 0    static const int zeroOffset = int('0');    // silently ignore leading or intermediate '_'    char c = 0;    do    {        is.read(c);    }    while (c == '_');    if (!isxdigit(c))    {        FatalIOErrorIn("SHA1Digest::readHexDigit(Istream&)", is)            << "Illegal hex digit: '" << c << "'"            << exit(FatalIOError);    }    if (isdigit(c))    {        return int(c) - zeroOffset;    }    else    {        return toupper(c) - alphaOffset;    }}
开发者ID:Kiiree,项目名称:CONSELFcae-dev,代码行数:32,


示例6: cyclicAMIPatch_

Foam::cyclicAMIPointPatchField<Type>::cyclicAMIPointPatchField(    const pointPatch& p,    const DimensionedField<Type, pointMesh>& iF,    const dictionary& dict):    coupledPointPatchField<Type>(p, iF, dict),    cyclicAMIPatch_(refCast<const cyclicAMIPointPatch>(p)),    ppiPtr_(NULL),    nbrPpiPtr_(NULL){    if (!isType<cyclicAMIPointPatch>(p))    {        FatalIOErrorIn        (            "cyclicAMIPointPatchField<Type>::cyclicAMIPointPatchField/n"            "(/n"            "    const pointPatch&,/n"            "    const DimensionedField<Type, pointMesh>&,/n"            "    const dictionary&/n"            ")/n",            dict        )   << "patch " << this->patch().index() << " not cyclicAMI type. "            << "Patch type = " << p.type()            << exit(FatalIOError);    }}
开发者ID:Kiiree,项目名称:RapidCFD-dev,代码行数:28,


示例7: patch_

fvsPatchField<Type>::fvsPatchField(    const fvPatch& p,    const DimensionedField<Type, surfaceMesh>& iF,    const dictionary& dict):    Field<Type>(p.size()),    patch_(p),    internalField_(iF){    if (dict.found("value"))    {        fvsPatchField<Type>::operator=        (            Field<Type>("value", dict, p.size())        );    }    else    {        FatalIOErrorIn        (            "fvsPatchField<Type>::fvsPatchField/n"            "(/n"            "    const fvPatch& p,/n"            "    const DimensionedField<Type, surfaceMesh>& iF,/n"            "    const dictionary& dict/n"            ")/n",            dict        )   << "essential value entry not provided"            << exit(FatalIOError);    }}
开发者ID:000861,项目名称:OpenFOAM-2.1.x,代码行数:33,


示例8: domainScalingLduInterfaceField

domainScalingFvPatchField<Type>::domainScalingFvPatchField(    const fvPatch& p,    const DimensionedField<Type, volMesh>& iF,    const dictionary& dict):    domainScalingLduInterfaceField(),    coupledFvPatchField<Type>(p, iF, dict),    domainScalingPatch_(refCast<const domainScalingFvPatch>(p)),    fieldName_(iF.name()){    if (!isType<domainScalingFvPatch>(p))    {        FatalIOErrorIn        (            "domainScalingFvPatchField<Type>::domainScalingFvPatchField/n"            "(/n"            "    const fvPatch& p,/n"            "    const DimensionedField<Type, volMesh>& iF,/n"            "    const dictionary& dict/n"            ")/n",            dict        )   << "patch " << this->patch().index() << " not domainScalingFvPatchField type. "            << "Patch type = " << p.type()            << exit(FatalIOError);    }    // Same as in the cyclic interface    this->evaluate();}
开发者ID:martinep,项目名称:foam-extend-svn,代码行数:31,


示例9: name

Foam::Istream& Foam::regIOobject::readStream(const word& expectName){    if (IFstream::debug)    {        Info<< "regIOobject::readStream(const word&) : "            << "reading object " << name()            << " from file " << objectPath()            << endl;    }    // Construct IFstream if not already constructed    if (!isPtr_)    {        readStream();        // Check the className of the regIOobject        // dictionary is an allowable name in case the actual class        // instantiated is a dictionary        if        (            expectName.size()         && headerClassName() != expectName         && headerClassName() != "dictionary"        )        {            FatalIOErrorIn("regIOobject::readStream(const word&)", *isPtr_)                << "unexpected class name " << headerClassName()                << " expected " << expectName << endl                << "    while reading object " << name()                << exit(FatalIOError);        }    }    return *isPtr_;}
开发者ID:Cescfangs,项目名称:OpenFOAM-1.7.x,代码行数:35,


示例10: symmetryPlanePatch_

Foam::symmetryPlaneFvPatchField<Type>::symmetryPlaneFvPatchField(    const fvPatch& p,    const DimensionedField<Type, volMesh>& iF,    const dictionary& dict):    basicSymmetryFvPatchField<Type>(p, iF, dict),    symmetryPlanePatch_(refCast<const symmetryPlaneFvPatch>(p)){    if (!isType<symmetryPlaneFvPatch>(p))    {        FatalIOErrorIn        (            "symmetryPlaneFvPatchField<Type>::symmetryPlaneFvPatchField/n"            "(/n"            "    const fvPatch& p,/n"            "    const Field<Type>& field,/n"            "    const dictionary& dict/n"            ")/n",            dict        )   << "/n    patch type '" << p.type()            << "' not constraint type '" << typeName << "'"            << "/n    for patch " << p.name()            << " of field " << this->dimensionedInternalField().name()            << " in file " << this->dimensionedInternalField().objectPath()            << exit(FatalIOError);    }}
开发者ID:Kiiree,项目名称:RapidCFD-dev,代码行数:29,


示例11: cstrIter

autoPtr<externalRadiationSource> externalRadiationSource::New(    const word& name,    const dictionary& dict,    const fvPatch& p){    word ersTypeName = dict.lookup("type");    Info<< "Selecting external radiation source " << ersTypeName << endl;    dictionaryConstructorTable::iterator cstrIter =        dictionaryConstructorTablePtr_->find(ersTypeName);    if (cstrIter == dictionaryConstructorTablePtr_->end())    {        FatalIOErrorIn        (            "externalRadiationSource::New(/n"            "    const word& name,/n"            "    const dictionary& dict,/n"            "    const fvPatch& p/n"            ")",            dict        )   << "Unknown externalRadiationSource type "            << ersTypeName << endl << endl            << "Valid  externalRadiationSource are : " << endl            << dictionaryConstructorTablePtr_->toc()            << exit(FatalIOError);    }    Info << "Here 2" << endl;    return cstrIter()(name, dict, p);}
开发者ID:CFMS,项目名称:foam-extend-foam-extend-3.2,代码行数:35,


示例12: exit

SymmetryPointPatchField<PatchField, Mesh, PointPatch, SymmetryPointPatch, MatrixType, Type>::SymmetryPointPatchField(    const PointPatch& p,    const DimensionedField<Type, Mesh>& iF,    const dictionary& dict):    BasicSymmetryPointPatchField        <PatchField, Mesh, PointPatch, MatrixType, Type>(p, iF){    if (!isType<SymmetryPointPatch>(p))    {        FatalIOErrorIn        (            "SymmetryPointPatchField"            "<PatchField, Mesh, PointPatch, SymmetryPointPatch, "            "MatrixType, Type>::SymmetryPointPatchField/n"            "(/n"            "    const PointPatch& p,/n"            "    const DimensionedField<Type, Mesh>& iF,/n"            "    const dictionary& dict/n"            ")/n",            dict        )   << "patch " << this->patch().index() << " not symmetry type. "            << "Patch type = " << p.type()            << exit(FatalIOError);    }}
开发者ID:Brzous,项目名称:WindFOAM,代码行数:30,


示例13: exit

autoPtr<thermalLaw> thermalLaw::New(    const word& name,    const volScalarField& T,    const dictionary& dict){    word rheoTypeName = dict.lookup("type");    Info<< "Selecting thermal model " << rheoTypeName << endl;    dictionaryConstructorTable::iterator cstrIter =        dictionaryConstructorTablePtr_->find(rheoTypeName);    if (cstrIter == dictionaryConstructorTablePtr_->end())    {        FatalIOErrorIn        (            "thermalLaw::New(/n"            "    const word& name,/n"            "    const volScalarField& T,/n"            "    const dictionary& dict/n"            ")",            dict        )   << "Unknown thermalLaw type "            << rheoTypeName << endl << endl            << "Valid  thermalLaws are : " << endl            << dictionaryConstructorTablePtr_->sortedToc()            << exit(FatalIOError);    }    return autoPtr<thermalLaw>(cstrIter()(name, T, dict));}
开发者ID:Unofficial-Extend-Project-Mirror,项目名称:foam-extend-foam-extend-3.2,代码行数:33,


示例14: exit

Foam::autoPtr<Foam::PODODE> Foam::PODODE::New(    const fvMesh& mesh,    const dictionary& dict){    word PODTypeName = dict.lookup("type");    Info<< "Selecting POD ODE model " << PODTypeName << endl;    dictionaryConstructorTable::iterator cstrIter =        dictionaryConstructorTablePtr_->find(PODTypeName);    if (cstrIter == dictionaryConstructorTablePtr_->end())    {        FatalIOErrorIn        (            "PODODE::New/n"            "(/n"            "    const fvMesh& mesh/n"            "    const dictionary& dict/n"            ")",            dict        )   << "Unknown PODODE type "            << PODTypeName << endl << endl            << "Valid  POD ODEs are : " << endl            << dictionaryConstructorTablePtr_->sortedToc()            << exit(FatalIOError);    }    return autoPtr<PODODE>        (cstrIter()(mesh, dict.subDict(PODTypeName + "Coeffs")));}
开发者ID:GoldenMan123,项目名称:openfoam-extend-foam-extend-3.1,代码行数:33,


示例15: exit

autoPtr<rheologyLaw> rheologyLaw::New(    const word& name,    const volSymmTensorField& sigma,    const dictionary& dict){    word rheoTypeName = dict.lookup("type");    Info<< "Selecting rheology model " << rheoTypeName << endl;    dictionaryConstructorTable::iterator cstrIter =        dictionaryConstructorTablePtr_->find(rheoTypeName);    if (cstrIter == dictionaryConstructorTablePtr_->end())    {        FatalIOErrorIn        (            "rheologyLaw::New(/n"            "    const word& name,/n"            "    const volSymmTensorField& sigma,/n"            "    const dictionary& dict/n"            ")",            dict        )   << "Unknown rheologyLaw type "            << rheoTypeName << endl << endl            << "Valid  rheologyLaws are : " << endl            << dictionaryConstructorTablePtr_->sortedToc()            << exit(FatalIOError);    }    return autoPtr<rheologyLaw>(cstrIter()(name, sigma, dict));}
开发者ID:TsukasaHori,项目名称:openfoam-extend-foam-extend-3.1,代码行数:33,


示例16: cyclicPatch_

cyclicFvsPatchField<Type>::cyclicFvsPatchField(    const fvPatch& p,    const DimensionedField<Type, surfaceMesh>& iF,    const dictionary& dict):    coupledFvsPatchField<Type>(p, iF, dict),    cyclicPatch_(refCast<const cyclicFvPatch>(p)){    if (!isType<cyclicFvPatch>(p))    {        FatalIOErrorIn        (            "cyclicFvsPatchField<Type>::cyclicFvsPatchField/n"            "(/n"            "    const fvPatch& p,/n"            "    const Field<Type>& field,/n"            "    const dictionary& dict/n"            ")/n",            dict        )   << "patch " << this->patch().index() << " not cyclic type. "            << "Patch type = " << p.type()            << exit(FatalIOError);    }}
开发者ID:CFMS,项目名称:foam-extend-foam-extend-3.2,代码行数:26,


示例17: cyclicAMILduInterfaceField

Foam::cyclicAMIFvPatchField<Type>::cyclicAMIFvPatchField(    const fvPatch& p,    const DimensionedField<Type, volMesh>& iF,    const dictionary& dict):    cyclicAMILduInterfaceField(),    coupledFvPatchField<Type>(p, iF, dict),    cyclicAMIPatch_(refCast<const cyclicAMIFvPatch>(p)){    if (!isA<cyclicAMIFvPatch>(p))    {        FatalIOErrorIn        (            "cyclicAMIFvPatchField<Type>::cyclicAMIFvPatchField"            "("                "const fvPatch&, "                "const DimensionedField<Type, volMesh>&, "                "const dictionary&"            ")",            dict        )   << "    patch type '" << p.type()            << "' not constraint type '" << typeName << "'"            << "/n    for patch " << p.name()            << " of field " << this->dimensionedInternalField().name()            << " in file " << this->dimensionedInternalField().objectPath()            << exit(FatalIOError);    }    if (!dict.found("value") && this->coupled())    {        this->evaluate(Pstream::blocking);    }}
开发者ID:BijanZarif,项目名称:OpenFOAM-2.4.0-MNF,代码行数:35,


示例18: info

Foam::token::compound& Foam::token::transferCompoundToken(const Istream& is){    if (type_ == COMPOUND)    {        if (compoundTokenPtr_->empty())        {            FatalIOErrorIn            (                "token::transferCompoundToken(const Istream& is)",                is            )   << "compound has already been transfered from token/n    "                << info() << abort(FatalIOError);        }        else        {            compoundTokenPtr_->empty() = true;        }        return *compoundTokenPtr_;    }    else    {        parseError("compound");        return *compoundTokenPtr_;    }}
开发者ID:000861,项目名称:OpenFOAM-2.1.x,代码行数:26,


示例19: exit

emptyFvsPatchField<Type>::emptyFvsPatchField(    const fvPatch& p,    const DimensionedField<Type, surfaceMesh>& iF,    const dictionary& dict):    fvsPatchField<Type>(p, iF, Field<Type>(0)){    if (!isType<emptyFvPatch>(p))    {        FatalIOErrorIn        (            "emptyFvsPatchField<Type>::emptyFvsPatchField/n"            "(/n"            "    const fvPatch& p,/n"            "    const Field<Type>& field,/n"            "    const dictionary& dict/n"            ")/n",            dict        )   << "patch " << this->patch().index() << " not empty type. "            << "Patch type = " << p.type()            << exit(FatalIOError);    }}
开发者ID:Haider-BA,项目名称:foam-extend-3.0,代码行数:25,


示例20: procPatch_

Foam::processorFvPatchField<Type>::processorFvPatchField(    const fvPatch& p,    const DimensionedField<Type, volMesh>& iF,    const dictionary& dict):    coupledFvPatchField<Type>(p, iF, dict),    procPatch_(refCast<const processorFvPatch>(p)),    sendBuf_(0),    receiveBuf_(0),    outstandingSendRequest_(-1),    outstandingRecvRequest_(-1),    scalarSendBuf_(0),    scalarReceiveBuf_(0){    if (!isA<processorFvPatch>(p))    {        FatalIOErrorIn        (            "processorFvPatchField<Type>::processorFvPatchField/n"            "(/n"            "    const fvPatch& p,/n"            "    const Field<Type>& field,/n"            "    const dictionary& dict/n"            ")/n",            dict        )   << "/n    patch type '" << p.type()            << "' not constraint type '" << typeName << "'"            << "/n    for patch " << p.name()            << " of field " << this->dimensionedInternalField().name()            << " in file " << this->dimensionedInternalField().objectPath()            << exit(FatalIOError);    }}
开发者ID:Benjamin-git,项目名称:RapidCFD-dev,代码行数:35,


示例21: symmetryPlanePatch_

symmetryPlanePointPatchField<Type>::symmetryPlanePointPatchField(    const pointPatch& p,    const DimensionedField<Type, pointMesh>& iF,    const dictionary& dict):    basicSymmetryPointPatchField<Type>(p, iF, dict),    symmetryPlanePatch_(refCast<const symmetryPlanePointPatch>(p)){    if (!isType<symmetryPlanePointPatch>(p))    {        FatalIOErrorIn        (            "symmetryPlanePointPatchField<Type>::symmetryPlanePointPatchField/n"            "(/n"            "    const pointPatch& p,/n"            "    const Field<Type>& field,/n"            "    const dictionary& dict/n"            ")/n",            dict        )   << "patch " << this->patch().index() << " not symmetry type. "            << "Patch type = " << p.type()            << exit(FatalIOError);    }}
开发者ID:BarisCumhur,项目名称:OpenFOAM-2.3.x,代码行数:26,


示例22: exit

emptyFaPatchField<Type>::emptyFaPatchField(    const faPatch& p,    const DimensionedField<Type, areaMesh>& iF,    const dictionary& dict):    faPatchField<Type>(p, iF, Field<Type>(0)){    if (typeid(p) != typeid(emptyFaPatch))    {        FatalIOErrorIn        (            "emptyFaPatchField<Type>::emptyFaPatchField/n"            "(/n"            "    const faPatch& p,/n"            "    const DimensionedField<Type, areaMesh>& iF,/n"            "    const dictionary& dict/n"            ")/n",            dict        )    << "/n    patch type '" << p.type()            << "' not constraint type '" << typeName << "'"            << "/n    for patch " << p.name()            << " of field " << this->dimensionedInternalField().name()            << " in file " << this->dimensionedInternalField().objectPath()            << exit(FatalIOError);    }}
开发者ID:Brzous,项目名称:WindFOAM,代码行数:28,


示例23: exit

autoPtr<solidInterface> solidInterface::New( const word& name, const fvMesh& mesh, const constitutiveModel& rheology ){    Info<< "Selecting solidInterface procedure " << name << endl;    dictionaryConstructorTable::iterator cstrIter =        dictionaryConstructorTablePtr_->find(name);    if (cstrIter == dictionaryConstructorTablePtr_->end())    {        FatalIOErrorIn            (                "solidInterface::New(/n"                "    const word& name,/n"                "    const fvMesh& mesh,/n"                "    const constitutiveModel& rheology" //,/n"                ")",                rheology                )   << "Unknown solidInterfaceMethod "                    << name << endl << endl                    << "Valid  solidInterfaces are : " << endl                    << dictionaryConstructorTablePtr_->sortedToc()                    << exit(FatalIOError);    }    return autoPtr<solidInterface>(cstrIter()(name, mesh, rheology));}
开发者ID:TsukasaHori,项目名称:openfoam-extend-foam-extend-3.1,代码行数:31,


示例24: ggiPatch_

ggiFvsPatchField<Type>::ggiFvsPatchField(    const fvPatch& p,    const DimensionedField<Type, surfaceMesh>& iF,    const dictionary& dict)    :    coupledFvsPatchField<Type>(p, iF, dict, true),    ggiPatch_(refCast<const ggiFvPatch>(p)){    if (!isType<ggiFvPatch>(p))    {        FatalIOErrorIn        (            "ggiFvsPatchField<Type>::ggiFvsPatchField/n"            "(/n"            "    const fvPatch& p,/n"            "    const DimensionedField<Type, surfaceMesh>& iF,/n"            "    const dictionary& dict/n"            ")/n",            dict        )   << "patch " << this->patch().index() << " not ggi type. "            << "Patch type = " << p.type()            << exit(FatalIOError);    }}
开发者ID:WensiWu,项目名称:openfoam-extend-foam-extend-3.1,代码行数:26,


示例25: exit

Foam::wedgePointPatchField<Type>::wedgePointPatchField(    const pointPatch& p,    const DimensionedField<Type, pointMesh>& iF,    const dictionary& dict):    pointPatchField<Type>(p, iF, dict){    if (!isType<wedgePointPatch>(p))    {        FatalIOErrorIn        (            "wedgePointPatchField<Type>::wedgePointPatchField/n"            "(/n"            "    const pointPatch& p,/n"            "    const Field<Type>& field,/n"            "    const dictionary& dict/n"            ")/n",            dict        )   << "patch " << this->patch().index() << " not wedge type. "            << "Patch type = " << p.type()            << exit(FatalIOError);    }}
开发者ID:000861,项目名称:OpenFOAM-2.1.x,代码行数:25,


示例26: fixedGradientFvPatchScalarField

inviscidWallPFvPatchScalarField::inviscidWallPFvPatchScalarField(    const fvPatch& p,    const DimensionedField<scalar, volMesh>& iF,    const dictionary& dict):    fixedGradientFvPatchScalarField(p, iF),    fluxFraction_(readScalar(dict.lookup("fluxFraction"))){    if (dict.found("gradient"))    {        gradient() = scalarField("gradient", dict, p.size());        fixedGradientFvPatchScalarField::updateCoeffs();        fixedGradientFvPatchScalarField::evaluate();    }    else    {        fvPatchField<scalar>::operator=(patchInternalField());        gradient() = 0.0;    }    if (fluxFraction_<0.0 || fluxFraction_ > 1.0)    {        FatalIOErrorIn        (            "inviscidWallPFvPatchScalarField::"            "supersonicFreeStreamFvPatchVectorField"            "(const fvPatch&, const scalarField&, const dictionary&)",            dict        )   << "    unphysical fluxFraction specified (< 0.0 or > 1.0)"            << exit(FatalIOError);    }}
开发者ID:frankl000,项目名称:OpenFOAM-1.7.x,代码行数:35,


示例27: zoneType

Foam::autoPtr<Foam::pointZone> Foam::pointZone::New(    const word& name,    const dictionary& dict,    const label index,    const pointZoneMesh& zm){    if (debug)    {        Info<< "pointZone::New(const word&, const dictionary&, const label, "               "const pointZoneMesh&) : constructing pointZone " << name            << endl;    }    word zoneType(dict.lookup("type"));    dictionaryConstructorTable::iterator cstrIter =        dictionaryConstructorTablePtr_->find(zoneType);    if (cstrIter == dictionaryConstructorTablePtr_->end())    {        FatalIOErrorIn        (            "pointZone::New(const word&, const dictionary&, "            "const label, const pointZoneMesh&)",            dict        )   << "Unknown pointZone type " << zoneType << endl << endl            << "Valid pointZone types are :" << endl            << dictionaryConstructorTablePtr_->sortedToc()            << exit(FatalIOError);    }    return autoPtr<pointZone>(cstrIter()(name, dict, index, zm));}
开发者ID:TsukasaHori,项目名称:openfoam-extend-foam-extend-3.1,代码行数:35,



注:本文中的FatalIOErrorIn函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ FatalIOErrorInFunction函数代码示例
C++ FatalException函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。