File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,14 +55,12 @@ def PetscInitialize(clargs=sys.argv):
5555 _petsc_initialized = True
5656
5757
58- with switchconfig (language = 'petsc' ):
59- op_get_args = Operator (
60- [PetscEq (dummy , GetArgs (dummy ))],
61- name = 'kernel_get_args' , opt = 'noop'
62- )
63-
64-
6558def PetscGetArgs ():
59+ with switchconfig (language = 'petsc' ):
60+ op_get_args = Operator (
61+ [PetscEq (dummy , GetArgs (dummy ))],
62+ name = 'kernel_get_args' , opt = 'noop'
63+ )
6664 argc_ptr = c_int ()
6765 argv_ptr = (POINTER (c_char_p ))()
6866 op_get_args .apply (argc = byref (argc_ptr ), argv = byref (argv_ptr ))
Original file line number Diff line number Diff line change 11import os
2- from devito .petsc .initialize import PetscInitialize
2+ from devito .petsc .initialize import PetscInitialize , PetscGetArgs
33from devito import configuration
44configuration ['compiler' ] = 'custom'
55os .environ ['CC' ] = 'mpicc'
66
77PetscInitialize ()
88print ("helloworld" )
9+
10+ PetscGetArgs ()
You can’t perform that action at this time.
0 commit comments