mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
This is SVN commit 4117 Updated ResInsight cmakelists to build ERT and link directly Removed precompiled ERT binaries p4#: 20183
33 lines
956 B
C
33 lines
956 B
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <analysis_module.h>
|
|
#include <rng.h>
|
|
|
|
|
|
int main( int argc , char ** argv) {
|
|
rng_type * rng = NULL;
|
|
if (0)
|
|
{
|
|
analysis_module_type * module = analysis_module_alloc_external( rng , "./simple_enkf.so" , "SimpleEnKF" );
|
|
if (module != NULL) {
|
|
analysis_module_set_var( module , "FLAG" , "42" );
|
|
analysis_module_set_var( module , "VarX" , "42.77" );
|
|
analysis_module_free( module );
|
|
} else
|
|
fprintf(stderr,"Hmmmm - failed to load external analysis module. \n");
|
|
|
|
}
|
|
|
|
|
|
{
|
|
analysis_module_type * module = analysis_module_alloc_internal( rng , "simple_enkf_symbol_table", "SimpleEnKF" );
|
|
if (module != NULL) {
|
|
analysis_module_set_var( module , "FLAG" , "42" );
|
|
analysis_module_set_var( module , "VarX" , "42.7708" );
|
|
analysis_module_free( module );
|
|
} else
|
|
fprintf(stderr,"Hmmmm - failed to load internal analysis module. \n");
|
|
}
|
|
|
|
}
|