CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Case-sensitive directories (https://www.cfd-online.com/Forums/openfoam-bugs/77989-case-sensitive-directories.html)

roth July 8, 2010 23:14

Case-sensitive directories
 
I've noticed some doubling-up of directories in 1.6.x, 1.7.0, and 1.7.x. i.e. two identical directories in content & name but for a lower/uppercase difference in the directory name.

As an example:
Code:

...\OpenFOAM\OpenFOAM-1.7.x\src\thermophysicalModels\specie\reaction\Reactions\
...\OpenFOAM\OpenFOAM-1.7.x\src\thermophysicalModels\specie\reaction\reactions\

There are others. I wonder if this could potentially cause difficulties down the line with code pointing to one or the other directories.

My apologies if this has been raised in the past.

Cheers
Mike

olesen July 9, 2010 03:16

Quote:

Originally Posted by roth (Post 266506)
I've noticed some doubling-up of directories in 1.6.x, 1.7.0, and 1.7.x. i.e. two identical directories in content & name but for a lower/uppercase difference in the directory name.

As an example:
Code:

...\OpenFOAM\OpenFOAM-1.7.x\src\thermophysicalModels\specie\reaction\Reactions\
...\OpenFOAM\OpenFOAM-1.7.x\src\thermophysicalModels\specie\reaction\reactions\

There are others. I wonder if this could potentially cause difficulties down the line with code pointing to one or the other directories.

But the two directories contain different things:
  • 'reactions/' contains code for compilation
  • 'Reactions/' contains template classes
On Unix-style systems there is no confusion between the names.
With the wmake system, all of the headers are available via 'lnInclude/', so the end-user wouldn't even notice anyhow.

mwild July 9, 2010 04:05

Others I found are:
  • src/OpenFOAM/{db/dictionary/d,containers/Dictionaries/D}ictionary.{C,H}
  • src/OpenFOAM/interpolations/patchToPatchInterpolation/{p,P}atchToPatchInterpolation.H
  • src/OpenFOAM/interpolations/primitivePatchInterpolation/{p,P}rimitivePatchInterpolation.H
  • src/OpenFOAM/meshes/{polyMesh/globalMeshData/p,ProcessorTopology/P}rocessorTopology.H
  • src/OpenFOAM/meshes/primitiveMesh/{primitivePatch/p,PrimitivePatch/P}rimitivePatch.H
  • src/OpenFOAM/meshes/primitiveShapes/objectHit/{p,P}ointHit.H
  • src/OpenFOAM/primitives/DiagTensor/{diagTensor/d,D}iagTensor.H
  • src/OpenFOAM/primitives/Scalar/{scalar/s,S}calar.{C,H}
  • src/OpenFOAM/primitives/SphericalTensor/{sphericalTensor/s,S}phericalTensor.H
  • src/OpenFOAM/primitives/SphericalTensor2D/{sphericalTensor2D/s,S}phericalTensor2D.H
  • src/OpenFOAM/primitives/Tensor/{tensor/t,T}ensor.H
  • src/OpenFOAM/primitives/Tensor2D/{tensor2D/t,T}ensor2D.H
  • src/OpenFOAM/primitives/Vector/{vector/v,V}ector.H
  • src/OpenFOAM/primitives/Vector2D/{vector2D/v,V}ector2D.H
  • src/OpenFOAM/primitives/random/{random.c,Random.C}
  • src/finiteVolume/cfdTools/general/fieldSources/timeActivatedExplicitSource/{t,T}imeActivatedExplicitSource.{C,H}
  • src/lagrangian/dsmc/clouds/{derived/dsmcCloud/d,Templates/DsmcCloud/D}smcCloud.H
  • src/lagrangian/dsmc/parcels/{derived/dsmcParcel/d,Templates/DsmcParcel/D}smcParcel.{C,H}
  • src/lagrangian/intermediate/clouds/{baseClasses/kinematicCloud/k,Templates/KinematicCloud/K}inematicCloud.{C,H}
  • src/lagrangian/intermediate/clouds/{baseClasses/reactingCloud/r,Templates/ReactingCloud/R}eactingCloud.{C,H}
  • src/lagrangian/intermediate/clouds/{baseClasses/reactingMultiphaseCloud/r,Templates/ReactingMultiphaseCloud/R}eactingMultiphaseCloud.{C,H}
  • src/lagrangian/intermediate/clouds/{baseClasses/thermoCloud/t,Templates/ThermoCloud/T}hermoCloud.{C,H}
  • src/lagrangian/intermediate/parcels/{baseClasses/reactingParcel/r,Templates/ReactingParcel/R},eactingParcel.{C,H}
  • applications/test/{dictionary/d,Dictionary/D}ictionaryTest.C
As long as you are using a case-sensitive file system, there are no problems (apart from possible typos).


All times are GMT -4. The time now is 06:03.