The new_std_density() and add_std_density() methods must be used before you use the add_survey_FIP() method to add a survey based on the FIP keyword. """ cfunc.add_std_density(self, phase_enum, pvtnum, density) # 2. Creating a wrapper object around the libecl library, cwrapper = CWrapper(ECL_LIB) cwrapper.registerType("ecl_grav", EclGrav) # 3. Installing the c-functions used to manipulate ecl_grav instances. # These functions are used when implementing the EclGrav class, not # used outside this scope. cfunc = CWrapperNameSpace("ecl_grav") cfunc.grav_alloc = cwrapper.prototype("c_void_p ecl_grav_alloc( ecl_grid , ecl_file )") cfunc.free = cwrapper.prototype("void ecl_grav_free( ecl_grav )") # Return value ignored in the add_survey_xxx() functions: cfunc.add_survey_RPORV = cwrapper.prototype("c_void_p ecl_grav_add_survey_RPORV( ecl_grav , char* , ecl_file )") cfunc.add_survey_PORMOD = cwrapper.prototype("c_void_p ecl_grav_add_survey_PORMOD( ecl_grav , char* , ecl_file )") cfunc.add_survey_FIP = cwrapper.prototype("c_void_p ecl_grav_add_survey_FIP( ecl_grav , char* , ecl_file )") cfunc.add_survey_RFIP = cwrapper.prototype("c_void_p ecl_grav_add_survey_RFIP( ecl_grav , char* , ecl_file )") cfunc.new_std_density = cwrapper.prototype("void ecl_grav_new_std_density( ecl_grav , int , double)") cfunc.add_std_density = cwrapper.prototype("void ecl_grav_add_std_density( ecl_grav , int , int , double)") cfunc.eval = cwrapper.prototype("double ecl_grav_eval( ecl_grav , char* , char* , ecl_region , double , double , double, int)")
# 2. Creating a wrapper object around the libecl library, cwrapper = CWrapper(ECL_LIB) cwrapper.registerType("ecl_grav", EclGrav) # 3. Installing the c-functions used to manipulate ecl_grav instances. # These functions are used when implementing the EclGrav class, not # used outside this scope. cfunc = CWrapperNameSpace("ecl_grav") cfunc.grav_alloc = cwrapper.prototype( "c_void_p ecl_grav_alloc( ecl_grid , ecl_file )") cfunc.free = cwrapper.prototype("void ecl_grav_free( ecl_grav )") # Return value ignored in the add_survey_xxx() functions: cfunc.add_survey_RPORV = cwrapper.prototype( "c_void_p ecl_grav_add_survey_RPORV( ecl_grav , char* , ecl_file )") cfunc.add_survey_PORMOD = cwrapper.prototype( "c_void_p ecl_grav_add_survey_PORMOD( ecl_grav , char* , ecl_file )") cfunc.add_survey_FIP = cwrapper.prototype( "c_void_p ecl_grav_add_survey_FIP( ecl_grav , char* , ecl_file )") cfunc.add_survey_RFIP = cwrapper.prototype( "c_void_p ecl_grav_add_survey_RFIP( ecl_grav , char* , ecl_file )") cfunc.new_std_density = cwrapper.prototype( "void ecl_grav_new_std_density( ecl_grav , int , double)") cfunc.add_std_density = cwrapper.prototype( "void ecl_grav_add_std_density( ecl_grav , int , int , double)") cfunc.eval = cwrapper.prototype( "double ecl_grav_eval( ecl_grav , char* , char* , ecl_region , double , double , double, int)" )