Files
ResInsight/ThirdParty/Ert/devel/libanalysis/applications/main_test.c
Magne Sjaastad 04006370ac Added ERT as source code based on https://github.com/Ensembles/ert/ and commit 7b53b5f61f5b47e8169b72098b562071df394bc3
This is SVN commit 4117
Updated ResInsight cmakelists to build ERT and link directly
Removed precompiled ERT binaries
p4#: 20183
2013-01-17 13:33:59 +01:00

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");
}
}