mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-13 17:48:34 +05:00
weightsfile
This commit is contained in:
parent
a8dd47ac18
commit
b72d5caf1b
@ -264,12 +264,15 @@ void Ng_LoadMesh (const char * filename)
|
|||||||
weightsfilename[strlen (weightsfilename)-3] = 'w';
|
weightsfilename[strlen (weightsfilename)-3] = 'w';
|
||||||
weightsfilename[strlen (weightsfilename)-2] = 'e';
|
weightsfilename[strlen (weightsfilename)-2] = 'e';
|
||||||
weightsfilename[strlen (weightsfilename)-1] = 'i';
|
weightsfilename[strlen (weightsfilename)-1] = 'i';
|
||||||
|
|
||||||
ifstream weightsfile(weightsfilename);
|
ifstream weightsfile(weightsfilename);
|
||||||
delete [] weightsfilename;
|
delete [] weightsfilename;
|
||||||
|
|
||||||
if (!(weightsfile.good()))
|
if (!(weightsfile.good()))
|
||||||
mesh -> Distribute();
|
{
|
||||||
|
// cout << "regular distribute" << endl;
|
||||||
|
mesh -> Distribute();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
char str[20];
|
char str[20];
|
||||||
@ -288,7 +291,7 @@ void Ng_LoadMesh (const char * filename)
|
|||||||
{
|
{
|
||||||
weightsfile >> n;
|
weightsfile >> n;
|
||||||
segment_weights.SetSize(n);
|
segment_weights.SetSize(n);
|
||||||
for (int i=0; i<n; i++)
|
for (int i = 0; i < n; i++)
|
||||||
weightsfile >> dummy >> segment_weights[i];
|
weightsfile >> dummy >> segment_weights[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user