111 |
case (FileDescriptor::medit): { |
case (FileDescriptor::medit): { |
112 |
//! plots the Mesh |
//! plots the Mesh |
113 |
std::string msh = (*__fileName).value(); |
std::string msh = (*__fileName).value(); |
114 |
|
|
115 |
msh += ".mesh"; |
msh += ".mesh"; |
116 |
|
|
117 |
std::ofstream fmsh(msh.c_str()); |
std::ofstream fmsh(msh.c_str()); |
118 |
|
|
119 |
MeshWriter w(fmsh,(*__mesh).mesh(),CR); |
MeshWriter w(fmsh,(*__mesh).mesh(),CR); |
168 |
|
|
169 |
switch((*__fileDescriptor).format()) { |
switch((*__fileDescriptor).format()) { |
170 |
case (FileDescriptor::dataExplorer): { |
case (FileDescriptor::dataExplorer): { |
171 |
std::ofstream fout((*__fileName).value().c_str()); |
std::ofstream fout((*__fileName).value()); |
172 |
if (fout.bad()) { |
if (fout.bad()) { |
173 |
fferr(2) << "Cannot open file " << (*__fileName).value() << '\n'; |
fferr(2) << "Cannot open file " << (*__fileName).value() << '\n'; |
174 |
std::exit(1); |
std::exit(1); |
219 |
Information::instance().unsetMesh(); |
Information::instance().unsetMesh(); |
220 |
} |
} |
221 |
|
|
222 |
|
void |
223 |
|
InstructionAffectation<FunctionExpressionFEM, FunctionVariable>:: |
224 |
|
execute() |
225 |
|
{ |
226 |
|
(*__expression).execute(); |
227 |
|
|
228 |
|
const ReferenceCounting<MeshExpression>& mesh |
229 |
|
= static_cast<FunctionExpressionFEM&>(*(*__variable).expression()).mesh(); |
230 |
|
|
231 |
|
ReferenceCounting<FunctionExpression> f |
232 |
|
= new FunctionExpressionFEM(mesh, __expression); |
233 |
|
|
234 |
|
(*f).execute(); |
235 |
|
|
236 |
|
(*__variable) = f; |
237 |
|
} |
238 |
|
|
239 |
|
|
240 |
InstructionSaveField:: |
InstructionSaveField:: |
241 |
InstructionSaveField(ReferenceCounting<FileDescriptor> descriptor, |
InstructionSaveField(ReferenceCounting<FileDescriptor> descriptor, |
242 |
ReferenceCounting<StringExpression> fileName, |
ReferenceCounting<StringExpression> fileName, |