Skip to content
Snippets Groups Projects

amfe v1.0.5

Merged Adrien Crovato requested to merge adri into master
All threads resolved!
1 file
+ 8
5
Compare changes
  • Side-by-side
  • Inline
+ 8
5
@@ -2,13 +2,13 @@
# -*- coding: utf-8 -*-
# Copyright 2020 University of Liège
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -35,10 +35,13 @@ class GUI:
if not os.path.isfile(optfile):
self.defopt(optfile)
cmd="gmsh %s %s %s" % (mshfile, posfile, optfile)
os.system(cmd)
os.system(cmd)
def defopt(self,fname='defaultflowOpt.opt'):
f = open(fname,'w')
f.write("General.Orthographic = 0;\n")
f.write('View[0].IntervalsType = 3;\n')
f.write('For i In {1:PostProcessing.NbViews-1}\n')
f.write(' View[i].Visible = 0;\n')
f.write('EndFor\n')
f.close()
Loading