/[ff3d]/ff3d/solver/SurfaceMeshGenerator.cpp
ViewVC logotype

Diff of /ff3d/solver/SurfaceMeshGenerator.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.54 by dobj, Fri Nov 14 16:17:51 2003 UTC revision 1.55 by delpinux, Sat Nov 15 18:50:14 2003 UTC
# Line 3296  generatesAllSufaceMeshes(const Problem& Line 3296  generatesAllSufaceMeshes(const Problem&
3296    }    }
3297    // Now we must create the association between bc and surfMeshes    // Now we must create the association between bc and surfMeshes
3298    
3299    // This map contains the association between bc and the surface meshes it    std::set<const SurfaceMesh*> treatedMeshes; // Mesh whose fictitious cells have been set
   // uses. (For each variable).  
   bcMeshAssociation.bcSetSize(problem.numberOfUnknown());  
3300    
3301    for (size_t i=0; i<problem.numberOfUnknown(); ++i) {    for (size_t i=0; i<problem.numberOfUnknown(); ++i) {
3302      const BoundaryConditionSet& bcSet      const BoundaryConditionSet& bcSet
# Line 3316  generatesAllSufaceMeshes(const Problem& Line 3314  generatesAllSufaceMeshes(const Problem&
3314            if(bs.structMesh(k)) {            if(bs.structMesh(k)) {
3315              bcMeshAssociation.addPDEBoundaryConditionAndMesh(i,&BC,&SMesh.surfaceMeshOfQuadrangles(k));              bcMeshAssociation.addPDEBoundaryConditionAndMesh(i,&BC,&SMesh.surfaceMeshOfQuadrangles(k));
3316            }            }
3317              if (treatedMeshes.find(&SMesh.surfaceMeshOfQuadrangles(k)) == treatedMeshes.end()) {
3318                treatedMeshes.insert(&SMesh.surfaceMeshOfQuadrangles(k));
3319                SMesh.surfaceMeshOfQuadrangles(k).computesFictitiousCells();
3320              }
3321          }          }
3322          break;          break;
3323        }        }
# Line 3331  generatesAllSufaceMeshes(const Problem& Line 3333  generatesAllSufaceMeshes(const Problem&
3333          const BoundarySurfaceMesh& bs          const BoundarySurfaceMesh& bs
3334            = dynamic_cast<const BoundarySurfaceMesh&>(B);            = dynamic_cast<const BoundarySurfaceMesh&>(B);
3335          bcMeshAssociation.addPDEBoundaryConditionAndMesh(i,&BC,bs.surfaceMesh());          bcMeshAssociation.addPDEBoundaryConditionAndMesh(i,&BC,bs.surfaceMesh());
3336            if (treatedMeshes.find(&(*bs.surfaceMesh())) == treatedMeshes.end()) {
3337              treatedMeshes.insert(&(*bs.surfaceMesh()));
3338              (*bs.surfaceMesh()).computesFictitiousCells();
3339            }
3340          break;          break;
3341        }        }
3342        default: {        default: {

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26