Skip to content
Snippets Groups Projects
Commit e826a79f authored by Chichi Lalescu's avatar Chichi Lalescu
Browse files

remove test_io from bfps itself

parent 8e57d0dc
Branches
No related tags found
No related merge requests found
......@@ -52,7 +52,6 @@ install_info = pickle.load(
'r'))
from .code import code
from .test_io import test_io
from .fluid_converter import fluid_converter
from .fluid_resize import fluid_resize
from .NavierStokes import NavierStokes
......
......
#######################################################################
# #
# Copyright 2015 Max Planck Institute #
# for Dynamics and Self-Organization #
# #
# This file is part of bfps. #
# #
# bfps is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published #
# by the Free Software Foundation, either version 3 of the License, #
# or (at your option) any later version. #
# #
# bfps is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with bfps. If not, see <http://www.gnu.org/licenses/> #
# #
# Contact: Cristian.Lalescu@ds.mpg.de #
# #
#######################################################################
import bfps
import bfps.tools
import numpy as np
import pickle
import os
class test_io(bfps.code):
def __init__(
self,
name = 'test_io',
work_dir = './',
simname = 'test'):
super(test_io, self).__init__(work_dir = work_dir, simname = simname)
self.name = name
self.parameters['string_parameter'] = 'test string'
self.parameters['other_string_parameter'] = 'another test string'
self.parameters['niter_todo'] = 0
self.parameters['real_number'] = 1.21
self.main_start += self.cprint_pars()
return None
......@@ -27,9 +27,24 @@
from test_base import *
class test_io(bfps.code):
def __init__(
self,
name = 'test_io',
work_dir = './',
simname = 'test'):
super(test_io, self).__init__(work_dir = work_dir, simname = simname)
self.name = name
self.parameters['string_parameter'] = 'test string'
self.parameters['other_string_parameter'] = 'another test string'
self.parameters['niter_todo'] = 0
self.parameters['real_number'] = 1.21
self.main_start += self.cprint_pars()
return None
if __name__ == '__main__':
opt = parser.parse_args()
c = bfps.test_io(work_dir = opt.work_dir + '/io')
c = test_io(work_dir = opt.work_dir + '/io')
c.write_src()
c.write_par()
c.set_host_info({'type' : 'pc'})
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment