Skip to content
Snippets Groups Projects
Commit fab1af11 authored by acrovato's avatar acrovato
Browse files

Disable all views except first one in gmsh

parent e6eafbe7
No related branches found
No related tags found
1 merge request!6amfe v1.0.5
Pipeline #7469 passed
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright 2020 University of Liège # Copyright 2020 University of Liège
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at # You may obtain a copy of the License at
# #
# http://www.apache.org/licenses/LICENSE-2.0 # http://www.apache.org/licenses/LICENSE-2.0
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
...@@ -35,10 +35,13 @@ class GUI: ...@@ -35,10 +35,13 @@ class GUI:
if not os.path.isfile(optfile): if not os.path.isfile(optfile):
self.defopt(optfile) self.defopt(optfile)
cmd="gmsh %s %s %s" % (mshfile, posfile, optfile) cmd="gmsh %s %s %s" % (mshfile, posfile, optfile)
os.system(cmd) os.system(cmd)
def defopt(self,fname='defaultflowOpt.opt'): def defopt(self,fname='defaultflowOpt.opt'):
f = open(fname,'w') f = open(fname,'w')
f.write("General.Orthographic = 0;\n") 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() f.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment